-
An expression that worked fine in CS4 no longer works in CS5
Hi all,
I have an old project created in AE CS4, with the following expression in the source text field at one text layer:
(“z=” +(comp(“Camera+Light”).layer(“bullet”).transform.position[0]))
Pretty much it returns a visual reading of my x position preceded by “z=” on it, it reads something like:
z=12.4875698245 at any given frame.
Now I’m trying the same structure in a completely different project, now in CS5, the expression I’m trying to use is this one:
(“rot=”) + thisComp.layer(“engrane delgado/engranes SMALL.psd 2”).transform.zRotation
I’m getting an AE error that states that an invalid numeric result (divide by zero?) is going on.
If I place the first portion of the expression (“rot=”) everything goes ok, I get rot= on the comp, if I place the second portion of the expression (the code I got from the pickwhip it works fine too, it’s only when I put all of it that goes crazy.
Can anyone tell me what I’m doing wrong?
Thanks in advance.
("rot=") + thisComp.layer("engrane delgado/engranes SMALL.psd 2").transform.zRotation;