Jump to content

Creating a macro: How do I Move or Delete a Mask Layer


Recommended Posts

I am working on a macro that creates a masked curves layer, but am stumped about how to do it cleanly.

My first try was to create the grayscale bitmap that was intended to become the mask and to execute Layer>Rasterize to Mask from the menu. Then I created the curves layer, but the macro system wouldn't let me move the mask under the curves layer.

So, I tried an alternate approach. I created the grayscale bitmap, used the menu to Layer>Rasterize to Mask, then used the menu to Select>Select From Layer. This loaded the bitmap as a selection. Then, when I created the curves layer, it automatically used the selection as a mask. So far, so good.

But now I had the mask layer still hanging around.  I could make it invisible, but attempts to delete it from within the macro capability silently failed. (There is no problem deleting it outside the macro.)

So, the macro has its intended effect, but executing the macro leaves this extra, no-longer-needed layer underneath the curves layer. Even if I rename it "delete me," it seems like there must be a better way.

Does anyone know how to solve this puzzle?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.