FORUMS: list search recent posts

Expressions and contents problem

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Diego Mellado
Expressions and contents problem
on Jun 4, 2014 at 3:32:55 pm
Last Edited By Diego Mellado on Jun 4, 2014 at 3:33:24 pm

Hello!
First of all, thanks for your attention. I am having trouble with the following expressions.
Whilie this works OK:


comp("Mask").layer(thisLayer.name).content(5).content("Shape 1").content("Path 1").path


This one doesn't:


index = 5;
comp("Mask").layer(thisLayer.name).content(index).content("Shape 1").content("Path 1").path


Does anyone have an idea on why?
I am using CS6 on Mavericks.

Thanks a lot!
Diego


Return to posts index

Dan Ebberts
Re: Expressions and contents problem
on Jun 4, 2014 at 3:53:54 pm

One thing I see is that "index" is a reserved word representing the layer's order in the layer stack. So setting index = 5 won't do anything and when you refer to index in the next line, what you'll get is the index of the layer hosting the expression. Try something like idx instead.

Dan



Return to posts index

Diego Mellado
Re: Expressions and contents problem
on Jun 4, 2014 at 5:27:04 pm

So obvious I feel stupid...
Thanks a lot!
D!


Return to posts index

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