Answered
Photoshop script. Edit SmartObject
Hi everyone!
There is a mockup .psd graphic file.
Inside the file is smart object.
How can I access and edit this smart object? (change layer, delete layer).
I try to access mockup as a normal layer, but it doesn't work.
var mockup = open(File('mockup.psd'));
app.activeDocument = mockup
var layerRef = app.activeDocument.artLayers.getByName("Layer_name");
layerRef.remove(); //just to delete the Layer for example
I would be glad if there are examples about how is possible edit a smart object.
Thanks.
