Copy link to clipboard
Copied
Hello,
I'm working on a script that turns layers into smart objects, but preserves their masks on the smart object.
For that, I need to save the current layer mask as a channel and return its name (done that), delete mask, convert into a smart object, and then recreate the mask from the channel that I saved and that I have its name.
I tried recording an action in which I dragged the channel into the layer which creates the layer mask, but undoing and running the action again fails. I tried to work with the code I got from that action but I still failed.
Ideally, I'm looking for code that does not load the channel as a selection and then create the mask, but does it directly. Is that possible?
Apply Image would seem to be a good option.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
thank you. for some reason I forgot about Apply Image 😆
Find more inspiration, events, and resources on the new Adobe Community
Explore Now