AE ENHANCERS

Expressions/Scripts/Presets
It is currently Sat May 25, 2013 2:46 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Position Expression Help.
PostPosted: Wed Apr 22, 2009 12:05 pm 
Offline

Joined: Mon Apr 20, 2009 10:58 pm
Posts: 3
I am new to using expressions in after effects. I was looking to see if people recommend expressions being faster than putting keyframes on every single layer. Which takes up a lot of time.

I have a comp. with 31 layers so far that contains text. Each layer of text is put below each other in the comp until it reaches the end and each layer extends across the whole comp with long sentences. I was wondering if there was an expression to tell the position to move to the left or right without keyframes and at a desired speed. Also if the layer could loop back again when it would reach to the end without motion title.

So far I keyframed layer 1 for 5 seconds, added a motion title, and moved its position to the right. Than I took layer 2 and pick whipped its position to the layer 1 position. I want this layer to move left instead and stay in its same position but animate left where it is from without having to keyframe it. But the layer is moving to layer 1 position and doing the same thing but I want it to stay on the same y-axis and move left.

Reigh


Top
 Profile  
 
 Post subject: Re: Position Expression Help.
PostPosted: Fri Apr 24, 2009 7:10 am 
Offline

Joined: Mon Apr 20, 2009 10:58 pm
Posts: 3
Can someone please help me with this? If you don't understand what I am trying to do I will try and explain it a little bit clearer.

Thanks

Reigh


Top
 Profile  
 
 Post subject: Re: Position Expression Help.
PostPosted: Fri Apr 24, 2009 10:47 am 
Offline

Joined: Tue Feb 03, 2009 6:30 pm
Posts: 84
Location: Paris - France
Hi Reigh,

i don't exactly understand what you want to achieve. Could you re-explain it ? Or maybe upload a screenshot or two so i can better visualize what you wanna do.

_________________
Sébastien
http://www.yenaphe.info


Top
 Profile  
 
 Post subject: Re: Position Expression Help.
PostPosted: Sat Apr 25, 2009 1:10 am 
Offline

Joined: Sat Jun 05, 2004 7:59 am
Posts: 646
Location: London, UK
You could try something like this expression on the Tile Center property of your Motion Tile effect:
Code:
offset = time * 100;
[value[0] - offset, value[1]];

which roughly translates as:
offset = comp time in seconds * 100
[current x value - offset, current y value]

Change the 100 value to alter the speed, and change it from "- offset" to "+ offset" to reverse the direction.


Top
 Profile  
 
 Post subject: Re: Position Expression Help.
PostPosted: Mon Apr 27, 2009 2:42 pm 
Offline

Joined: Mon Apr 20, 2009 10:58 pm
Posts: 3
Thanks Paul. I tried it and it worked. How did you figure that out? I am a beginner at expressions so things like this amaze me because it was so quick. I will post a pic of what I am trying to accomplish soon. If I have any more questions I will be sure to post another reply.

Thanks.

Reigh


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


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