Skip to main content
Inspiring
Apr 22, 2025 7:14 PM UTC
Answered

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

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.

Dan Ebberts
Dan EbbertsCorrect answer
Community Expert
Apr 22, 2025 7:30 PM UTC

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);

 

 

2 replies

Dan Ebberts
Community Expert
Dan EbbertsCommunity ExpertCorrect answer
Community Expert
Apr 22, 2025 7:30 PM UTC

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);

 

 

Translate
Bunny.cAuthor
Inspiring
Apr 26, 2025 8:09 PM UTC

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

Translate