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

Can't parent null object to another layer/composition - script error

Community Beginner ,
Jan 03, 2024 Jan 03, 2024

Hi, I'm trying to parent null object position to position of another layer (composition), but in expressions i got this error:  "object of type Layer found where a number, array or property is needed."chyba1.PNG

There are no effects on both layers. To this null object is parent a position of puppet pin from another layer.

 

How can I solve this, please?

TOPICS
Error or problem
1.2K
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
Advocate ,
Jan 03, 2024 Jan 03, 2024
thisComp.layer("telo").transform.position;
// or
thisComp.layer("telo").position;

You need to specify which property you want to use in your expression.

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
Enthusiast ,
Feb 01, 2025 Feb 01, 2025
LATEST

Thank you, I was having the same problem.

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