Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Spiralling particles effect

  • Spiralling particles effect

    Posted by Steve Blacker on May 30, 2008 at 7:16 pm

    Hi all:

    I came across this video recently in the Trapcode gallery, and I really like the effect of the two particles spiralling around eachother as they travel through space. I could really use an effect like this for a project I’m working on at the moment. I read somewhere that a script (expression) of some sort was used to achieve this effect.

    The video:

    https://www.barbecue-design.de/index.php?article_id=62

    I’m no expert on expressions… does anyone have any ideas? Any tutorials or resources that could help?

    Thanks in advance,

    Steve

    Steve Blacker replied 17 years, 11 months ago 3 Members · 4 Replies
  • 4 Replies
  • Lloyd Alvarez

    June 1, 2008 at 12:22 am

    You can animate the position in a spiral by moving the x & y on a sine and cosine wave and z in time like this:

    phase=0;
    amplitude=20;
    frequency=10;
    z_stretch=100;
    x=Math.sin((time+phase)*frequency)*amplitude;
    y=Math.cos((time+phase)*frequency)*amplitude;
    z= (time+phase)*z_stretch;
    [x,y,z]

    You can change the value of the phase (positive or negative) for your second strand so that they twirl around each other.

    If you are using particular you’ll need to split the expression out like this:

    phase=0;
    amplitude=20;
    frequency=10;
    z_stretch=100;
    x=Math.sin((time+phase)*frequency)*amplitude;
    y=Math.cos((time+phase)*frequency)*amplitude;
    [x,y]

    and:

    phase=0;
    amplitude=20;
    frequency=10;
    z_stretch=100;
    z=(time+phase)*z_stretch;

    -Lloyd

    https://aescripts.com

  • Steve Blacker

    June 1, 2008 at 1:16 am

    I’ll try this out tomorrow and see how it goes. I really appreciate you taking the time to post – thanks so much;

    Steve

  • Yafes Altun

    June 5, 2008 at 7:33 pm

    Really nice thing i am impressed. Steve, i would be glad, if you would share your project with us, so that we can see if it has worked out or not 😉 (i mean outputfile)

    thanks

  • Steve Blacker

    June 6, 2008 at 12:19 am

    Of course! I am still working on it, but I aim to be finished in a couple of weeks at most (it’s a music video). I’ll post a link here when it’s done.

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