Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Looking for ideas with an expression to get my particles to orbit a sphere

  • Jason Karl

    February 9, 2012 at 12:02 am

    3664_orblinesrotatecopycs5.aep.zip

    updated the project with a new expression and it swings the particles in a orbit now, but i cant place anything in the center of the orbit, the whole orbit is either infront or behind, it will never go around an object, how do I place my sphere in the middle of the orbit?

    S = 2;
    D = 800;

    X= Math.sin(time*S)*(D/2);
    Z = Math.cos(time*S)*(D/2);
    [value[0]+x,value[1],value[2]+Z]

  • Dan Ebberts

    February 9, 2012 at 12:47 am

    Is your sphere a 3D layer?

    Dan

  • Jason Karl

    February 9, 2012 at 12:50 am

    Yeah the Sphere is set to 3d, i have tried sliding on the z and my orbit is always in front of or in back of it, never around it…..

  • Dan Ebberts

    February 9, 2012 at 12:57 am

    I just tried your expression, and it works for me (after I fixed the typo). How are you generating the sphere? Are there any 2D layers between the sphere and the particle?

    Dan

  • Jason Karl

    February 9, 2012 at 1:10 am

    everything in my project is 3d, and the sphere is just a solid with cc sphere applied to it

  • Jason Karl

    February 9, 2012 at 1:12 am

    i just swapped out the sphere with text and does the same thing, i must be missing somthing

  • John Cuevas

    February 9, 2012 at 12:36 pm

    The problem with your project is while CC Particle World has Z position and can take z position coordinates, it’s a 2D effect. Turning it to 3d doesn’t change that(neither is sphere,). The particles will move behind the sphere if the sphere is the top layer.

    You can accomplish what you want using Trapcodes particular(you can download a free trial), either through the use of obstruction layers or near/far distance fade.

    Johnny Cuevas, Editor
    Thinkck.com

    “I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work.”
    —THOMAS EDISON on inventing the light bulb.

  • Jason Karl

    February 9, 2012 at 2:39 pm

    Thanks John, i will give that a try

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