SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
TUTORIALS
MAGAZINE
TRAINING
VIDEOS - REELS
PODCASTS
EVENTS
SERVICES
NEWSLETTER
NEWS
BLOGS
ADOBE AFTER EFFECTS:
Home
Forum
Basics
Expressions
Tutorials
Podcasts
Motion Graphics
Training
Cinema 4D
FAQ
Re: offset position based upon percentage
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Respond to this post
•
Return to posts index
•
Read entire thread
Re: offset position based upon percentage
by
Nick Hill
on Aug 17, 2009 at 8:15:06 pm
Hi Adam
Assuming the width/height of each text layer is irrelevant in determining its position (AE doesn't give you a way to find this out with expressions) I would try this:
1) add two Slider controls to the null. Call one something like MaxDisplacement and the other Percentage. Percentage would go from 0 to 1; MaxDisplacement is the maximum amount you want each layer to move.
2) in the Position property of each text layer do something like this (you may need to change the names depending on your comp)
maxDisp = thisComp.layer("Null").effect("MaxDisplacement")("Slider");
perc = thisComp.layer("Null").effect("Percentage")("Slider");
dy = maxDisp * perc;
[transform.position[0], transform.position[1] + dy]
Move the Percentage slider between 0 and 1 to move each layer up or down to the maximum value of MaxDisplacement. You can still position each layer because its position is taken into account in the expression.
Hope this helps
Nick
Respond to this post
•
Return to posts index
•
Read entire thread
Current Message Thread:
offset position based upon percentage
by adam taylor on Aug 4, 2009 at 7:55:00 pm
Re: offset position based upon percentage
by Nick Hill on Aug 17, 2009 at 8:15:06 pm
Note:
If you are a registered user please
click here to login
before posting.
Your post will not be accepted if your name and email address are not registered in our database. Click
here
if you do not have an account.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message:
Note:
The following are HTML characters and may cause parts of your post to disappear if not used correctly: < > &
To include any portion of the post in your response, highlight the desired text and hit the "Q" key.
Read more...
Please post Expressions Code in the box below:
Add your message signature
Note:
By clicking "Post Direct" button above, you are agreeing to the Creative Cow's
Code of Conduct
.
FORUMS
•
TUTORIALS
•
MAGAZINE
•
TRAINING
•
VIDEOS - REELS
•
PODCASTS
•
EVENTS
•
SERVICES
•
NEWSLETTER
•
NEWS
•
BLOGS
©
CreativeCOW.net
All rights are reserved.
[
Top
]