Forum Replies Created

  • Hi all,

    Actually I am selecting the item through the script given in adobe script after effects guide

    var firstComp = app.project.item(1);
    alert(“number of layers is ” + firstComp.numLayers);
    alert(“name of last layer is ” + firstComp.layer(1).name)

    the alert is showing right when I run the script but as soon as i change the order of name the alert shows message undefined . So I want to know how the item is taken in order .
    Could anyone guide me through this.

    var firstComp = app.project.item(1);
    alert("number of layers is " + firstComp.numLayers);
    alert("name of last layer is " + firstComp.layer(1).name)

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy