ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Child position change is a fraction of parent change

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Jonathan Lutjens
Child position change is a fraction of parent change
on Feb 4, 2020 at 4:10:13 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.


Return to posts index

Aaron van Dijkhuizen
Re: Child position change is a fraction of parent change
on Feb 4, 2020 at 4:19:56 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)


Return to posts index

Jonathan Lutjens
Re: Child position change is a fraction of parent change
on Feb 4, 2020 at 5:02:21 pm

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


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]