Forum Replies Created

Page 2 of 3
  • David Rodriguez

    May 14, 2008 at 8:38 pm in reply to: Use one expression to change all expressions

    Many blessings to you Sir, thank you!

  • David Rodriguez

    May 14, 2008 at 7:27 pm in reply to: Change floor position in Bounce expression

    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

  • David Rodriguez

    May 12, 2008 at 4:07 am in reply to: Error with gravity expression

    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; //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]

  • David Rodriguez

    May 12, 2008 at 2:55 am in reply to: Error with gravity expression

    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

  • David Rodriguez

    May 12, 2008 at 2:34 am in reply to: Error with gravity expression

    I think this is it. Check out the big brain on Dave.

    seedRandom(index,true);
    Vx0 =random(-200,200); // initial x velocity (pixels/second)

  • David Rodriguez

    May 12, 2008 at 2:15 am in reply to: Error with gravity expression

    Thanks for all of the help gentlemen!
    I’m having a hard time replacing

    Vx0 =25; // initial x velocity (pixels/second)

    with

    seedRandom(index, true);
    random(-200,200);

    How should the finished line look?

    David

  • David Rodriguez

    May 11, 2008 at 11:42 pm in reply to: Error with gravity expression

    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

  • David Rodriguez

    May 11, 2008 at 6:39 pm in reply to: Error with gravity expression

    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

  • That 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 Gravity

    You rock? Yes you do.
    EXACTLY what I needed.

    Thank You

Page 2 of 3

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy