Copy link to clipboard
Copied
I have a Layer With Clipping Mask, I want to make a new Layer Without Clipping Mask, When I make a New Layer It's converted to Cliping Mask Layer....
#target photoshop
//
// LayerC.jsx
//
//
// Generated Sat Jan 23 2021 23:22:57 GMT+0530
//
cTID = function(s) { return app.charIDToTypeID(s); };
sTID = function(s) { return app.stringIDToTypeID(s); };
//
//==================== LayerC ==============
//
function LayerC() {
// 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("contentLayer"));
desc1.putReference(cTID('null'), ref1);
var desc2 = new ActionDescriptor();
desc2.putBoolean(cTID('Grup'), true);
var desc3 = new ActionDescriptor();
var desc4 = new ActionDescriptor();
desc4.putDouble(cTID('Rd '), 255);
desc4.putDouble(cTID('Grn '), 23.5564198717475);
desc4.putDouble(cTID('Bl '), 0);
desc3.putObject(cTID('Clr '), sTID("RGBColor"), desc4);
desc2.putObject(cTID('Type'), sTID("solidColorLayer"), desc3);
desc1.putObject(cTID('Usng'), sTID("contentLayer"), desc2);
executeAction(cTID('Mk '), desc1, dialogMode);
};
// Move
step1(); // Make
// step2(); // Move
};
//=========================================
// LayerC.main
//=========================================
//
LayerC.main = function () {
LayerC();
};
LayerC.main();
// EOF
"LayerC.jsx"
// EOF
Change true to false to have such line in your code:
desc2.putBoolean(cTID('Grup'), false);
Copy link to clipboard
Copied
Before you start new thread finish previous you created.
You did not say how that code worked for you etc...
Copy link to clipboard
Copied
OMG, Always Remember old thread @Kukurykus
Copy link to clipboard
Copied
Change true to false to have such line in your code:
desc2.putBoolean(cTID('Grup'), false);
Copy link to clipboard
Copied
Thanku so much @Kukurykus Very Well
Copy link to clipboard
Copied
btw. don't use in each answer to me my linked name. I know you talk to me wihout it 😉
Copy link to clipboard
Copied
No NO ! @Kukurykus Name is Brand Name, Because Pronounciation is difficult for this name,
Copy link to clipboard
Copied
Then don't use it at all. When you answer to the post I created I know you answer to me. The linked names should be used for example when you want to call me from other thread.