Skip to main content
Participant
July 25, 2019
Question

Parent a null to top of a resizing shape layer

  • July 25, 2019
  • 1 reply
  • 240 views

Hi,

Hopefully someone can help...

I have a shape layer that scales up on its y axis.

I need a null to follow the top of the shape layer as it animates up.

Any ideas?

Thanks

Leigh

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
July 25, 2019

Subtract half of the height to the position, and you're there:

[thisComp.layer("Shape").transform.position[0], thisComp.layer("Shape").transform.position[1] - (thisComp.layer("Shape").sourceRectAtTime(time).height/2)]

Which turns out like this: