Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Confetti start position

  • Confetti start position

    Posted by Richard White on January 29, 2010 at 10:28 pm

    Hi All,

    I’m new to After Effects. I found Dan Ebberts confetti expression and it works great. I would like to know how to have the same effect starting at the bottom of the screen and rising up. Also if it would be possible to do from the sides. Any help is greatly appreciated.

    Thanks

    Richard White replied 16 years, 3 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    January 29, 2010 at 10:52 pm

    Wow – that’s an old one. Mainly you’d just need to change the position expression.

    // bottom to top would look like this:

    minSpeed = 100; //minimum speed in y direction (pixels per second)
    maxSpeed = 150;
    maxDrift = 100; // maximum drift in x direction

    seed = Math.round(effect(“Point Control”).param(“Point”)[0]);
    age = effect(“Point Control”).param(“Point”)[1];
    if(seed == 0){
    [0,-10,0]
    }else{
    seedRandom(seed,true);
    currSpeed = random(minSpeed,maxSpeed);
    drift = random(-maxDrift,maxDrift);
    origin = [random(0,thisComp.width),thisComp.height+10,0];
    origin – [age*drift,age*currSpeed,0];
    }

    // left to right:

    minSpeed = 100; //minimum speed in y direction (pixels per second)
    maxSpeed = 150;
    maxDrift = 100; // maximum drift in x direction

    seed = Math.round(effect(“Point Control”).param(“Point”)[0]);
    age = effect(“Point Control”).param(“Point”)[1];
    if(seed == 0){
    [0,-10,0]
    }else{
    seedRandom(seed,true);
    currSpeed = random(minSpeed,maxSpeed);
    drift = random(-maxDrift,maxDrift);
    origin = [-10,random(0,thisComp.height),0];
    origin + [age*currSpeed,age*drift,0];
    }

    // right to left:

    minSpeed = 100; //minimum speed in y direction (pixels per second)
    maxSpeed = 150;
    maxDrift = 100; // maximum drift in x direction

    seed = Math.round(effect(“Point Control”).param(“Point”)[0]);
    age = effect(“Point Control”).param(“Point”)[1];
    if(seed == 0){
    [0,-10,0]
    }else{
    seedRandom(seed,true);
    currSpeed = random(minSpeed,maxSpeed);
    drift = random(-maxDrift,maxDrift);
    origin = [thisComp.width + 10,random(0,thisComp.height),0];
    origin – [age*currSpeed,age*drift,0];
    }

    You’ll probably need to bump up the life value in the Point Control expression for the horizontal versions.

    Dan

  • Richard White

    January 29, 2010 at 11:14 pm

    Hi Dan,

    Thanks for the info. I’ll give it a go. I found the confetti expression on your web site. (Motionscript) Great site by the way.

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