Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Using expressions to create an animated spiral in 3D space

  • Using expressions to create an animated spiral in 3D space

    Posted by Bryan Woods on November 14, 2006 at 7:57 pm

    I am looking for somone who could help me create a piece of expression to create a spiral animation that will rotate in all three planes. My example is a particle that rotates around an axis but moves forward as it rotates, much like a screw. I dont want it to spiral down to a point, I want it to be at an nice, equidistant rotation around an invisible axis that progresses forward that is in 3D so that i can orbit around it with a camera. If anyone has any insight into this or if there is another post that covers this, please let me know.

    Note: I have viewed the tutorial by Fang Xiang, but it is lacking an element to connect two different steps together, and so I get confused following his instructions.

    ~Bryan
    https://www.novatech.synced.org

    Colin Braley replied 19 years, 8 months ago 3 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    November 14, 2006 at 11:02 pm

    I’d make a null the parent of your particle, rotate the null, and move the null along the axis of rotation.

    Dan

  • Colin Braley

    November 15, 2006 at 3:38 am

    I would just do what Dan said but if you really want to use expressions use this:

    //I don’t have AE on this machine but this should work
    diameter = 200;//pixels
    zBegin = -1000;//pixels
    zEnd = 1000;//pixels
    spinRate = 2;//Adjust this until you like it
    beginTime = 0;//seconds
    endTime = 5;//seconds
    //–
    x = diamter * Math.sin(time * spinRate);
    y = diamter * Math.cos(time* spinRate);
    z = linear(time, beginTime, endTime, zBegin, zEnd);
    [x, y, z]
    //Enjoy

    ~Colin

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