Skip to main content
Participant
Jan 3, 2024 11:19 AM UTC
Question

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

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."

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?

2 replies

Legend
Jan 3, 2024 2:19 PM UTC
thisComp.layer("telo").transform.position;
// or
thisComp.layer("telo").position;

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

Translate
S_ A
Inspiring
Feb 1, 2025 8:26 AM UTC

Thank you, I was having the same problem.

Translate