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
Error with gravity 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
Error with gravity expression
by
David Rodriguez
on May 11, 2008 at 6:59:43 am
I am using CS3 and have applied an expression for bounce to a graphic. I have received the following error
After Effect warning: Timeout while waiting for the engine.
Expression disabled
Error occured at line 16.
Comp: RxTV
Layer: 1 (YELLOW_DOT.psd)
Property: Position
The Expression I applied is as follows
Vy0 = 500; //initial y velocity (pixels/second)
Vx0 = 300; // initial x velocity (pixels/second)
g = 2500; // gravity (pixels/second/second)
floor = 400;
e = .85; //elasticity
b = floor - position[1];
h = b + Vy0*Vy0/(2*g);
T = Vy0/g + Math.sqrt(2*h/g);
if (time < T){
y = Vy0*time - g*time*time/2 + b;
}else{
Vy = -(Vy0 - g*T);
while (true){
Vy *= e;
t = T;
T += 2*Vy/g;
if (time < T){
t = time - t;
y = Vy*t - g*t*t/2;
break;
}else if (T - t < thisComp.frameDuration){
y = 0;
break;
}
}
}
[position[0] + Vx0*time, floor - y]
Any help fixing my problem or passing me a gravity with floor expression that works with CS3 would be much appreciated.
Thank You
Return to Posts Index
•
Read Entire Thread
•
Reply To This Post
Current Message Thread:
Error with gravity expression
by David Rodriguez on May 11, 2008 at 6:59:43 am
Re: Error with gravity expression
by Dan Ebberts on May 11, 2008 at 6:23:34 pm
Re: Error with gravity expression
by David Rodriguez on May 11, 2008 at 6:39:00 pm
Re: Error with gravity expression
by Dan Ebberts on May 11, 2008 at 11:08:41 pm
Re: Error with gravity expression
by David Rodriguez on May 11, 2008 at 11:42:01 pm
Re: Error with gravity expression
by Darby Edelen on May 11, 2008 at 11:52:35 pm
Re: Error with gravity expression
by David Rodriguez on May 12, 2008 at 2:15:09 am
Re: Error with gravity expression
by David Rodriguez on May 12, 2008 at 2:34:00 am
Re: Error with gravity expression
by Darby Edelen on May 12, 2008 at 12:10:54 am
Re: Error with gravity expression
by David Rodriguez on May 12, 2008 at 2:55:52 am
Re: Error with gravity expression
by Darby Edelen on May 12, 2008 at 2:57:16 am
Re: Error with gravity expression
by David Rodriguez on May 12, 2008 at 4:07:12 am
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
.
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
]