PDA

View Full Version : Issue with arrays in photoshop javascript


helicopterr
01-07-2007, 08:56 PM
Hey anyone know the command I need to use to get PS to give me the index of a selected layer in an array of layers in a document?

For instance, if

app.document(0).activeLayer;

and

app.document(0).layers[X];

both refer to the same selected layer, how do I get PS to give X in the form of a number?

berniebernie
01-08-2007, 01:24 AM
http://www.ps-scripts.com/bb/viewtopic.php?t=1317

CGTalk Moderation
01-08-2007, 01:24 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.