Skip to main content
Inspiring
April 22, 2025
Answered

I want to control null layers that have their position directly parented (via expression) by using a

  • April 22, 2025
  • 1 reply
  • 341 views

I parented the position of the puppet pin 'L1' to the null layer 'L1',
and the pin 'L2' to the null layer 'L2'.
The expression used is: thisComp.layer("L1").transform.position

Then, I parented both null layers 'L1' and 'L2' to the null layer 'L' to control them together
(using the pick whip in the "Parent & Link" section to link the layers themselves, not just the position).

However, the control doesn’t work.
The null layer 'L' does not affect them as expected.

Correct answer Dan Ebberts

Try changing your puppet pin L1 expression to this:

L1 = thisComp.layer("L1");
L1.toComp(L1.anchorPoint);

and your puppet pin L2 expression to this:

L2 = thisComp.layer("L2");
L2.toComp(L2.anchorPoint);

 

 

1 reply

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
April 22, 2025

Try changing your puppet pin L1 expression to this:

L1 = thisComp.layer("L1");
L1.toComp(L1.anchorPoint);

and your puppet pin L2 expression to this:

L2 = thisComp.layer("L2");
L2.toComp(L2.anchorPoint);

 

 

Bunny.cAuthor
Inspiring
April 26, 2025

Wow, this is exactly the result I was hoping for. Thank you so much!!