Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity › Forums › Adobe After Effects Expressions › Position connected to the rotation

  • Position connected to the rotation

    Posted by Weeeeeeeee on February 25, 2007 at 7:02 pm

    I’m looking for an expression that changes the position values depending on the rotation value.
    When the rotation is 0 the position should be [0,0] and then it should change little by little until rotation is -80 and position should be [5,7].
    Plus when it rotates the other way the position should change little by little until rotation reaches 140 and position should be [6,0].

    Dan Ebberts replied 19 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Dan Ebberts

    February 25, 2007 at 7:56 pm

    This should do it:

    if (rotation < 0){ linear(rotation,-80,0,[5,7],[0,0]); }else{ linear(rotation,0,140,[0,0],[6,0]); } Dan

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