SIGN IN
::
SPONSORS
::
ABOUT US
::
CONTACT US
FORUMS
LIBRARY
PODCASTS
BLOGS
MAGAZINE
SERVICES
NEWSLETTERS
NEWS
STORE
EVENTS
ADOBE AFTER EFFECTS:
Forum
AE Basics
AE Expressions
Tutorials
Articles
Podcasts
Motion Graphics
Training
Cinema 4D
Finding a loop point in an Expression
Cow Forums
:
Adobe After Effects Expressions
VIEW POSTS
•
ADD A NEW POST
•
SEARCH
•
CHANGE FORUM
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Finding a loop point in an Expression
by
David Rodriguez
on Jun 28, 2008 at 5:09:10 pm
I am using the following on position
xAmp = 30; //height of undulations (pixels)
xFreq = .8; //undulations per second
xSpeed = 350; //speed of wave (pixels per second)
wl = xSpeed/xFreq; //wavelength (pixels)
phaseOffset = ((position[0]%wl)/wl)*2*Math.PI;
y = xAmp*Math.sin(2*Math.PI*xFreq*time + phaseOffset);
swayAmp = 50; //amplitude of sway
swayFreq = 2; //frequency of sway
x = swayAmp * Math.sin(time * swayFreq);
value + [x,y]
and the following on rotation
xFreq = .5; //undulations per second
xSpeed = 150; //speed of wave (pixels per second)
damping = 12; //undulation damping factor
wl = xSpeed/xFreq; //wavelength (pixels)
phaseOffset = ((position[0]%wl)/wl)*2*Math.PI;
theta = Math.atan(Math.cos(2*Math.PI*xFreq*time + phaseOffset));
radiansToDegrees(theta)/damping;
Is there any way to make these expressions loopable? I would like the position and rotation to come back to the original starting point so that it makes a perfect loop cycle.
Any help would be greatly appreciated!
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Current Message Thread:
Finding a loop point in an Expression
by David Rodriguez on Jun 28, 2008 at 5:09:10 pm
Re: Finding a loop point in an Expression
by Dan Ebberts on Jun 28, 2008 at 9:33:36 pm
Re: Finding a loop point in an Expression
by David Rodriguez on Jun 29, 2008 at 2:16:39 am
Re: Finding a loop point in an Expression
by Dan Ebberts on Jun 29, 2008 at 6:43:54 pm
Note:
If you are a registered user and you
do not
see your name and email in the two respective fields above, you may reset your account cookies by clicking
here
. Your post
will not be accepted
if the name and email provided above are not currently registered in our database.
Name
E-Mail Address
Subject
E-Mail me when someone responds
Just This Message
Entire Thread
None
Message
Note:
The following characters are HTML command 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. For more on how to post,
click here
.
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
•
LIBRARY
•
PODCASTS
•
BLOGS
•
MAGAZINE
•
SERVICES
•
NEWSLETTERS
•
NEWS
•
STORE
•
EVENTS
©
CreativeCOW.net
All rights are reserved.
[
Top
]