Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

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

Community Beginner ,
Apr 22, 2025 Apr 22, 2025

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.

TOPICS
Expressions
118
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 22, 2025 Apr 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);

 

 

Translate
Community Expert ,
Apr 22, 2025 Apr 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);

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 26, 2025 Apr 26, 2025
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines