I want to create layer from layer mask, like in this gif:


And i need to do this from script. Is that possible?


Script or action?

The action steps are:

  • Select the mask
  • Make a Solid Color layer
  • Rasterize Layer
  • Apply Layer Mask


| improve this answer | |
  • 1
    Yes i want to do that by script - exactly what you showed in gif, but in photoshop-scripting – BartoszTermena Dec 8 '18 at 13:13

Record an action for it.

In the Actions panel, click the Create New Action button , or choose New Action from the Actions panel menu. Enter an action name, select an action set, and set additional options: ... Click Begin Recording. ... Perform the operations and commands you want to record.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.