Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
lecza
Topic Author
Posts: 2
Joined: Wed Apr 18, 2012 11:43 am

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

Wed Apr 18, 2012 1:03 pm

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: Fri Jul 23, 2010 11:49 pm

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

Wed Apr 18, 2012 1:07 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
Topic Author
Posts: 2
Joined: Wed Apr 18, 2012 11:43 am

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

Wed Apr 18, 2012 1:22 pm

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

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

Who is online

Users browsing this forum: No registered users and 3 guests