Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions time&expression

  • Posted by Nida Ekin on October 27, 2009 at 1:21 pm

    hi,
    I have problem with expression. im trying to do some layers -that i written expression- move in certain time…
    i wrote like this

    timeToStart = 2;
    if (time > timeToStart){
    x=70+index*20
    y=700+index*-20
    z=index*10
    position=[x,y,z];
    }else{
    x=70+index*20
    y=1000+index*-20
    z=index*10
    position=[x,y,z];
    }

    i used index because layers will be arranged.
    maybe this is long way i dont know…
    i want to learn connection between time and expression? sorry for my bad english. i hope you understand.

    Dan Ebberts replied 16 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    October 27, 2009 at 3:51 pm

    Are you asking if there’s a better way to write this expression? If so, I think using arrays could help:

    timeToStart = 2;
    if (time > timeToStart){
    [70,700,0] + [20,-20,10]*index
    }else{
    [70,1000,0]+ [20,-20,10]*index
    }

    Or, are you asking if there’s a way to make the layer move smoothly rather than jump to the new position?

    Dan

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