FORUMS: list search recent posts

Bounce 3D layer at specific time

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Erik Lingerfelt
Bounce 3D layer at specific time
on Jul 20, 2014 at 4:09:57 pm

Hello Dan, everybody...

It's been a while since I've been here...

So, I've searched all over and tried several expressions to do what I want, but it just doesn't work.

I got Dan's Bounce with (his also) timeToStart I found around here, but the layer it's attached to (position) won't budge.
I trie using the inPoint option also, and dragging the layer to show at 2 seconds - for which I removed all the "time" options, leaving only the raw Bounce expression... and still it doesn't move. What I notice is that the expression starts over at 0 and by the time it get's to 2 seconds, THEN I see a little movement.

I hope I was clear on this.
What can I do ?

Thanks.
Erik

timeToStart = 2;
t = time - timeToStart;
if (t > 0){
veloc = 10;
amplitude = 700;
decay = 5.0;
y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);
value + [0,y,0]
}else
value;


Return to posts index

Dan Ebberts
Re: Bounce 3D layer at specific time
on Jul 20, 2014 at 4:33:22 pm

Try changing this line:

y = amplitude*Math.cos(veloc*time)/Math.exp(decay*time);

to this:

y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);


Dan



Return to posts index

Erik Lingerfelt
Re: Bounce 3D layer at specific time
on Jul 20, 2014 at 4:42:53 pm

Hummmmm, yes! Thanks Dan!
That worked for the bounce at set time.

Now, as predicted, I need the layer to stay off screen until the bounce kicks in.

I tried setting the last line to a value offscreen, but didn't work.... :(

Erik


Return to posts index


Dan Ebberts
Re: Bounce 3D layer at specific time
on Jul 20, 2014 at 5:40:04 pm

Does the starting/maximum amplitude value put it off screen? If so, this should be all you need:

timeToStart = 2;
t = Math.max(time - timeToStart,0);
veloc = 10;
amplitude = 700;
decay = 5.0;
y = amplitude*Math.cos(veloc*t)/Math.exp(decay*t);
value + [0,y,0]


Dan



Return to posts index

Erik Lingerfelt
Re: Bounce 3D layer at specific time
on Jul 20, 2014 at 5:43:05 pm

Yes, indeed!

What a cleanup in the code, huh ? :) NICE!
All I needed was the timetostart line...

Thanks a lot, Dan. You ARE the one! :D

Erik


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]