Skip to main content
Participant
January 3, 2024
Question

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

  • January 3, 2024
  • 1 reply
  • 1169 views

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?

1 reply

Legend
January 3, 2024
thisComp.layer("telo").transform.position;
// or
thisComp.layer("telo").position;

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

S_ A
Inspiring
February 1, 2025

Thank you, I was having the same problem.