How to use only the z value of a camera's position keyframes

Moderators: Disciple, zlovatt

Post Reply
lecza
Posts: 2
Joined: April 18th, 2012, 11:43 am

I'm need an expression to use only the z value of a camera's position keyframes. I'm so desperate, searching for hours for the answer. I'm so dumb to create a new expression. Please someone HELP ME! Thanks!
dfred
Posts: 29
Joined: July 23rd, 2010, 11:49 pm

At the end of the expressions just make sure it says ".position[2]"

You can also just pick whip the z position and it will put the [2] at the end for you.

0 is x, 1 is y, 2 is z
lecza
Posts: 2
Joined: April 18th, 2012, 11:43 am

Wow, thanks! It was a lifesaver.
Works fine whit this expression:

temp = transform.position[2];
[0, 0, temp]
Post Reply