Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Position animation using rotation expression

  • Position animation using rotation expression

    Posted by Danasa Arsad on July 9, 2013 at 9:26 am

    hi,
    i want to do animation where i can control the movement (Y position) of an object using rotation value,
    i want the expression to says something like:
    “If the angle of rotation is 0, the Y position is 772. if the angle is 90 the position is 172”
    basically i want to make an object move up/down when i rotate

    Hope you understand what i mean,
    Thanks!

    Mitch Mann replied 12 years, 10 months ago 2 Members · 1 Reply
  • 1 Reply
  • Mitch Mann

    July 9, 2013 at 1:55 pm

    Position expression as follows:

    myRotation = transform.rotation;
    myX = transform.position[0];
    myY = linear(myRotation,0,90,772,172);
    [myX,myY];

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