Page 1 of 1

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

Posted: April 18th, 2012, 1:03 pm
by lecza
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!

Re: How to use only the z value of a camera's position keyfr

Posted: April 18th, 2012, 1:07 pm
by dfred
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

Re: How to use only the z value of a camera's position keyfr

Posted: April 18th, 2012, 1:22 pm
by lecza
Wow, thanks! It was a lifesaver.
Works fine whit this expression:

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