FORUMS: list search recent posts

following position x

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Josh Holdens
following position x
on Sep 18, 2011 at 1:25:01 am

Alright here's what I'm trying to accomplish. I want to be able to follow a given property(in this case position), but specifically the x or y position. I thought it would be as easy as setting a variable then adding the valueAtTime expression, but I'm definitely missing something.... I saw the delay expression but I'm still unsure how to apply that in this case.

x = thisComp.layer("White Solid 2").transform.position[0].valueAtTime(time - 1);
y = value[1];

[x,y]


Return to posts index

Dan Ebberts
Re: following position x
on Sep 18, 2011 at 2:58:16 am

You just have the array indexing for x in the wrong place. Try it this way:

x = thisComp.layer("White Solid 2").transform.position.valueAtTime(time - 1)[0];
y = value[1];
[x,y]


Dan



Return to posts index

Josh Holdens
Re: following position x
on Sep 19, 2011 at 11:29:49 am

Great big thanks, I was completely stomped.


Return to posts index

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