Skip to main content
Known Participant
Nov 29, 2023 7:09 PM UTC
Question

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

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

 

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

10 replies

Dan Ebberts
Community Expert
Community Expert
Nov 29, 2023 7:16 PM UTC

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

Translate
Dan Ebberts
Community Expert
Community Expert
Nov 29, 2023 7:19 PM UTC

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]
Translate
Marks0266Author
Known Participant
Nov 29, 2023 7:31 PM UTC

Same results Error can't return results in numeric value

Translate