Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Simple (I think) AE Expressions Question

  • Simple (I think) AE Expressions Question

    Posted by Adelany on February 2, 2006 at 2:41 am

    If I have a layer and set that layer’s Position property to [transform.position.valueAtTime(time – 1)[0] + 5, 0] I would think that if the layer started at 0,0 it would move to the right at intervals of 5. But this doesn’t happen. It doesn’t move at all.

    I’ve also noticed that if I have my layer move using keyframes first THEN I can affect its movement in this way but I would prefer not to do it this way.

    Can someone please explain how this works? I would really appreciate it because right now I am in a real bind.
    Thanks!
    Alex

    Mylenium replied 20 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mylenium

    February 2, 2006 at 6:03 pm

    Nope, wrong logic. Zero multiplied with zero gives zero (because your time is nowhere referenced and does not change you always operate with zero or undefined values). I’m not quite sure why you are using valueAtTime at all. Your result could be easily achieve by simply multiplying a fixed value e.g.

    Math.round(time)*5

    for a stepped movement every second.

    Mylenium

    [Pour Myl

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