• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

New Layer Without Clipping Mask

Participant ,
Jul 25, 2021 Jul 25, 2021

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

 

 

lop.JPG 

TOPICS
Actions and scripting

Views

295

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 25, 2021 Jul 25, 2021

Change true to false to have such line in your code:

desc2.putBoolean(cTID('Grup'), false);

 

Votes

Translate

Translate
Adobe
LEGEND ,
Jul 25, 2021 Jul 25, 2021

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...

Computer Path Can't access in Photoshop

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

OMG, Always Remember old thread @Kukurykus 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

Change true to false to have such line in your code:

desc2.putBoolean(cTID('Grup'), false);

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

Thanku so much @Kukurykus  Very Well 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 25, 2021 Jul 25, 2021

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 😉

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

No NO ! @Kukurykus  Name is Brand Name, Because Pronounciation is difficult for this name, 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 25, 2021 Jul 25, 2021

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines