David Rodriguez
Forum Replies Created
-
Many blessings to you Sir, thank you!
-
This looks great, thank you.
Now of course I need the balls to bounce twice not just once before the floor falls away.Help please!
Con Muchas Gracias!
David -
Is there an easy way to let me turn this off, control the position and then have the expression come back on?
So here is my final expression,
Vy0 = 200; //initial y velocity (pixels/second)
seedRandom(index,true);
Vx0 =random(-200,200); // initial x velocity (pixels/second)
g = 2500; // gravity (pixels/second/second)
floor = 1050;
e = .82; //elasticityb = 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]
-
Now how do I turn it off? Is there an easy way to let me take control of the animation at a certain point then have the expression take over further down the line?
Thank You for time and attention
David -
I think this is it. Check out the big brain on Dave.
seedRandom(index,true);
Vx0 =random(-200,200); // initial x velocity (pixels/second) -
Thanks for all of the help gentlemen!
I’m having a hard time replacingVx0 =25; // initial x velocity (pixels/second)
with
seedRandom(index, true);
random(-200,200);How should the finished line look?
David
-
After playing with the settings for a few hours I understand the expression much better. If I could just get the line
Vx0 =25; // initial x velocity (pixels/second)
to randomly choose a number between -200 and 200 I would be well on my way to making this work exactly how I want it to.
Any help is much appreciated
David -
You were correct Sir! I changed my floor to 1050 and the error has gone away. Now I need to figure out (have someone tell me) why the balls all bounce to the right and off screen.
My animation is this. I have a gel capsule graphic that breaks open to drop sixty tiny capsules onto the floor, they then bounce up and down a few times then form a heart wave graphic.
I am trying to get the bounce to look natural. The tiny capsules are all released from a central point in the screen and I need them to bounce and spread out over the width of the screen. Currently they all bounce to the right and off screen.
Perhaps I need a different expression or some randomness?Any help is much appreciated!
David -
David Rodriguez
March 5, 2008 at 8:21 am in reply to: Expression to pull Camera back from keyframed settingsThat was exactly what the doctor ordered. Thank You Sir.
-
David Rodriguez
December 3, 2007 at 4:47 am in reply to: Dan Ebbert’s ferris wheel expression Add GravityYou rock? Yes you do.
EXACTLY what I needed.Thank You