Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Creating a particle beam on mulitple layers and in X,Y,Z space

  • Creating a particle beam on mulitple layers and in X,Y,Z space

    Posted by Peter Gagnon on January 17, 2008 at 3:12 pm

    Hi All,

    I have created a particle beam effect for a 8 second Sci Fi gun battle. I want to keep the same effect for all the various guns and manipulate the beam in 3D space so that I can go from the muzzle of the weapon to where ever it’s going. The beam consists of several layers, but the beam itself is a combination between trapcode particular and 3D stroke… I don’t want this effect to look like ‘Star Wars’ so I could really use some ideas… I though about using a null to control the positions with an expression, etc… but I can never fully get this to work… Any ideas?

    Peter Gagnon replied 18 years, 6 months ago 2 Members · 2 Replies
  • 2 Replies
  • Darby Edelen

    January 17, 2008 at 4:36 pm

    [Peter Gagnon] “I though about using a null to control the positions with an expression, etc… but I can never fully get this to work… Any ideas?”

    I don’t have enough experience with 3D Stroke to give you a solution for that effect, but you should be able to do something like this with Particular. I’d even suggest using 2 Nulls, one for the source and one for the destination. Then you could interpolate the position of the emitter from one to the other between layer markers.

    in = thisComp.layer("Muzzle");
    out = thisComp.layer("Destination");

    try{
    i = marker.index(1).time;
    o = marker.index(2).time;
    }
    catch(myErr){
    i = inPoint;
    o = outPoint;
    }

    linear(time, i, o, in, out);

    A couple of notes: this attempts to use the first two markers on the layer as the start and end times for the shot, if one of these 2 markers doesn’t exist then it uses the layer in point as the start time and the out point as the end time. Also, this returns a three dimensional vector if the Nulls (Muzzle & Destination) are 3D layers, so you’ll need to split the result into X & Y and Z values for Particular:

    p = linear(time, i, o, in, out);
    p[0,1]

    and

    p = linear(time, i, o, in, out);
    p[2]

    Should work pretty well though.

    Darby Edelen
    Designer
    Left Coast Digital
    Santa Cruz, CA

  • Peter Gagnon

    January 17, 2008 at 4:45 pm

    Wow! That’s cool… I am still trying to wrap my head around it… I guess the destination null is what is confusing me. I am gonna d a test now… thanks.

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