AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 18, 2013 1:02 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: How to use only the z value of a camera's position keyframes
PostPosted: Wed Apr 18, 2012 1:03 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: How to use only the z value of a camera's position keyfr
PostPosted: Wed Apr 18, 2012 1:07 pm 
Offline

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


Top
 Profile  
 
 Post subject: Re: How to use only the z value of a camera's position keyfr
PostPosted: Wed Apr 18, 2012 1:22 pm 
Offline

Joined: Wed Apr 18, 2012 11:43 am
Posts: 2
Wow, thanks! It was a lifesaver.
Works fine whit this expression:

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group