ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

layer index of parent comp

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Nathan Apffel
layer index of parent comp
on Jan 28, 2018 at 9:50:41 pm

is there a way to reference the layer index of the parent comp? I want to set a value based on the layer number of the current comp in its parent comp. make sense?

i know there is a thisComp.parent.layer but thisComp.parent.layer.index doesn't work and i'm not sure how to index works here.

thanks


Return to posts index

Dan Ebberts
Re: layer index of parent comp
on Jan 28, 2018 at 10:38:17 pm

You have to reference the parent comp by name:

comp("Main Comp").layer(thisComp.name).index

Dan



Return to posts index

Nathan Apffel
Re: layer index of parent comp
on Jan 29, 2018 at 4:19:06 pm

Thanks Dan!


Return to posts index

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