Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Text Y Position linked to null Y rotation

  • Text Y Position linked to null Y rotation

    Posted by Isaac Wolfram on August 1, 2011 at 5:45 pm

    I have a series of text rotating through the screen in 3d space. as they rotate through i need the position at the start to be higher in “Y” and then when the finish the rotation I need them to be lower in “Y”.

    The rotating text is linked to a null for the rotation value. I would like to create a script for the Y position in the text element so as the rotation changes in the null the Y position will change on the text.

    This isn’t a direct link because of the difference in values. I don’t know how to create this expression.

    Any help?

    Isaac Wolfram replied 14 years, 9 months ago 2 Members · 6 Replies
  • 6 Replies
  • Dan Ebberts

    August 1, 2011 at 6:11 pm

    Is the text layer a child of the rotating null? Around which axis and in which direction is the null rotating? What’s the relationship between degrees of rotation and pixels of movement?

    >higher in “Y”

    Do you mean a higher y value (which would be lower) or a more negative y value (which would be higher)?

    Dan

  • Isaac Wolfram

    August 1, 2011 at 7:45 pm

    my man dan ebberts, i did first try to look through your site before posting here, thanks for replying.

    The text object, and illustrator file is a child of the rotating null. the null is rotating on the Y axis.

    I am having a difficult time finding the math to relate the Y rotation of the null to the Y position of the text object.

    I believe it’s:
    Start
    Text object Y -200
    Null Rotation -20

    End Pass out of Frame
    Text Object Y +155
    Null Rotation +67

    Attached are some screen shots, ignore the 4 text elements I’m just trying to make it work with 1 first before making it go to all 4.

    Who doesn’t fall, cannot rise.

  • Dan Ebberts

    August 1, 2011 at 8:08 pm

    The text layer’s position expression is probably going to look something like this:

    rStart = -20;
    rEnd = 67;
    yStart = -200;
    yEnd = 155;
    y = linear(parent.transform.yRotation,rStart,rEnd,yStart,yEnd);
    value + [0,y,0]

    Dan

  • Isaac Wolfram

    August 1, 2011 at 8:32 pm

    amazing, it works. is that an array?

    i’m shocked. thanks for taking the time to reply.

    Who doesn’t fall, cannot rise.

  • Dan Ebberts

    August 1, 2011 at 8:39 pm

    The last line adds an array ([0,y,0]) to another array (value–the pre-expression 3D value of the position property).

    Dan

  • Isaac Wolfram

    August 1, 2011 at 8:55 pm

    your expression saved me lots of key frames and made it much easier to do any ramps. seriously i can’t thank you enough.

    Who doesn’t fall, cannot rise.

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