FORUMS: list search recent posts

return value of layer index

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Riccardo Sinti
return value of layer index
on Oct 15, 2013 at 3:24:47 pm

I just want to create a variable which gives me the layer's index number.
This should be easy but I cant get it.
Thanks


Return to posts index

Dan Ebberts
Re: return value of layer index
on Oct 15, 2013 at 4:08:48 pm

For the layer with the expression:

var idx = index;


For a different layer

var idx = thisComp.layer("other layer").index;


Dan



Return to posts index

Riccardo Sinti
Re: return value of layer index
on Oct 15, 2013 at 4:45:36 pm

As always you rock!
I was over thinking it, I guess, by by writing:

var idx = thisLayer(index);

or perhaps I was invoking some other aspect of the expression that doesn't return the value of the layer's index

Thanks again


Return to posts index


Dan Ebberts
Re: return value of layer index
on Oct 15, 2013 at 4:56:09 pm

This should work as well:

var idx = thisLayer.index;



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]