Skip to main content
Known Participant
November 29, 2023
Question

HELP, Why is this wrong, both should return a numeric value.

  • November 29, 2023
  • 1 reply
  • 623 views

transform.zPosition = thisComp.layer("text_02").transform.zPosition + 12;

 

 

 

This topic has been closed for replies.

1 reply

Dan Ebberts
Community Expert
Community Expert
November 29, 2023

It looks OK--where have you applied the expression? Are you getting an error message?

Dan Ebberts
Community Expert
Community Expert
November 29, 2023

If you have applied the expression to a layer that doesn't have position dimensions separated, it would need to be more like this:

z = thisComp.layer("text_02").transform.zPosition + 12;
[value[0],value[1],z]
Marks0266Author
Known Participant
November 29, 2023

Same results Error can't return results in numeric value