Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Child position change is a fraction of parent change

  • Child position change is a fraction of parent change

    Posted by Jonathan Lutjens on February 4, 2020 at 4:10 pm

    Did some searching and haven’t been able to find a solution. I’m guessing it’s not complex, but it’s beyond me.
    I’m tracking the movement of a person’s head in a shot and I’d like to use the null that gets the track data applied to it to animate a graphic element. However, I need the graphic element to move “to a lesser degree” than the parent null. So, the end result will be a graphic element that is tracked with a person’s head in the shot, but isn’t moving precisely with the head. It will have some “life” of its own. If the person (the null) moves her head 100 pixels to the left and 30 pixels down, the graphic will move 80 pixels to the left and 27 down. Something along those lines.

    Jonathan Lutjens replied 6 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Aaron Van dijkhuizen

    February 4, 2020 at 4:19 pm

    Hey its pretty easy:
    u parent the layer to the null and put the expression:

    value – (parent.transform.position*0.2)

    and change the value “0.2” to whatever. if u want the layer to more than the parent u change the ‘-‘ to a ‘+’

    good luck!

    value - (parent.transform.position*0.2)

  • Jonathan Lutjens

    February 4, 2020 at 5:02 pm

    That’s it! I knew it would be a simple one.
    Thank you for posting so quickly!

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