Answered
Can't run the script in selected layers
I can't do Selected Layers to Frame from layer, if i select 4 layer and run the my script, getting a error..
Anyone help me
Here is my script
#target photoshop
//
// Convt.jsx
//
//
// Generated Fri Oct 22 2021 16:03:19 GMT+0530
//
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
//
//==================== Convt ==============
//
function Convt() {
// Make
function step1(enabled, withDialog) {
if (enabled != undefined && !enabled)
return;
var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putClass(sTID("framedGroupSection"));
desc1.putReference(cTID('null'), ref1);
var ref2 = new ActionReference();
ref2.putName(cTID('Lyr '), "Layer");
desc1.putReference(cTID('From'), ref2);
desc1.putInteger(sTID("layerSectionStart"), 135);
desc1.putInteger(sTID("layerSectionEnd"), 136);
desc1.putString(cTID('Nm '), "Frame 2");
executeAction(cTID('Mk '), desc1, dialogMode);
};
step1(); // Make
};
//=========================================
// Convt.main
//=========================================
//
Convt.main = function () {
Convt();
};
Convt.main();
// EOF
"Convt.jsx"
// EOF