Copy link to clipboard
Copied
if (!item.locked && !item.hidden && !item.layer.locked && !item.layer.hidden){
pasteSubtractOn(item);
}
Layers do not have a hidden property, they are visible
https://ai-scripting.docsforadobe.dev/jsobjref/Layer.html#layer-visible
I would wager this is the problem
A simpler way to achieve this is to examine item.editable.
Copy link to clipboard
Copied
Layers do not have a hidden property, they are visible
https://ai-scripting.docsforadobe.dev/jsobjref/Layer.html#layer-visible
I would wager this is the problem
Copy link to clipboard
Copied
A simpler way to achieve this is to examine item.editable.