eliran84
11-08-2007, 05:43 PM
for(var i=0;i<docRef.artLayers.length;i++) { if(docRef.artLayers[i].kind==LayerKind.SMARTOBJECT) { // how do I access this smart object's layers? } }
Hello!
I have a PSD doc I have fully created with Photoshop CS3 Extended (Middle Eastern).
With a script (or you can suggest another way) - I want to be able to hide all the text layers ("LayerKind.TEXT") in that doc, but most of them are inside smart objects that I have created in order to keep everything clean.
Anyway, the code above detects all the smart objects, but how do I access the objects inside those (e.g 'sub-objects') ?
And If I'm asking already, maybe anyone knows how do I change the align of a text layer in a doc?
The scripting manuals *didn't* offer any keyword/solution :(
This is pretty disappointing to see such a GREAT program lacking such "simple" scripting-keywords/commands.
Will be extremly happy if someone here knows the answer(s) ! (:
Hello!
I have a PSD doc I have fully created with Photoshop CS3 Extended (Middle Eastern).
With a script (or you can suggest another way) - I want to be able to hide all the text layers ("LayerKind.TEXT") in that doc, but most of them are inside smart objects that I have created in order to keep everything clean.
Anyway, the code above detects all the smart objects, but how do I access the objects inside those (e.g 'sub-objects') ?
And If I'm asking already, maybe anyone knows how do I change the align of a text layer in a doc?
The scripting manuals *didn't* offer any keyword/solution :(
This is pretty disappointing to see such a GREAT program lacking such "simple" scripting-keywords/commands.
Will be extremly happy if someone here knows the answer(s) ! (: