Copy link to clipboard
Copied
transform.zPosition = thisComp.layer("text_02").transform.zPosition + 12;
Copy link to clipboard
Copied
It looks OK--where have you applied the expression? Are you getting an error message?
Copy link to clipboard
Copied
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]
Copy link to clipboard
Copied
Same results Error can't return results in numeric value
Copy link to clipboard
Copied
Can you post a screen shot that shows the expression in the timeline and the error message?
Copy link to clipboard
Copied
 My guess I am wrong, I know C##, and Visual Basic to me that should work. So don't laugh
Copy link to clipboard
Copied
Actually to me the 1st post should have worked.
Copy link to clipboard
Copied
You'll get that error if text_02 doesn't have separated dimensions for position. If that's the case, this should work:
z = thisComp.layer("text_02").transform.position[2] + 12;
[value[0],value[1],z]
Copy link to clipboard
Copied
Maybe I should tell you what I am looking for. I need an expression that moves layers below on the z axis a # of pixels Hope that makes sense.
Thank
Mark
Copy link to clipboard
Copied
If neither layer has dimensions separated, the last one I posted should do the trick.
Copy link to clipboard
Copied
If you just want to move a layer a number of pixels in the z direction, something like this should work:
n = 12;
value + [0,0,n]