How open and copy smart object
Hi,
I read topics about smart objects but i not found solution on my problem.
1. I need open smart object layer
2. copy all layers from the smart object to another file
Thanks ![]()
Hi,
I read topics about smart objects but i not found solution on my problem.
1. I need open smart object layer
2. copy all layers from the smart object to another file
Thanks ![]()
Michael L Hale wrote:
You can use the artLayer.duplicate() method.
I beleive what you wrote is correct. I'm just a hacker don't know javascript and don't have a firm grip on object programming or the javascript language syntext. I see many duplicate method in the Photoshop CS5 Scripting Guide.pdf and in the Photoshop CS5 JavaScript Ref.pdf. I do not see a duplicate method section for a layer or artlayer object the closest duplicate method I see is for layerset which contain artlayers. Because I do not process much knowledge about javascript programming I can not figure out the proper syntext that would be requited to copy an smart object layers from the current active document into an other open document. Could you post a sample script that I could use to hack with.
Let's say you have two open documents. The first open doc is the one you want to dupe the layer to and the second doc is active and the layer you want to dupe is the activeLayer.
app.activeDocument.activeLayer.duplicate(app.documents[0]);
Of course you can change the document and layer references as needed. However the layer to be duped needs to be in the activeDocument.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.