Activity › Forums › Adobe After Effects Expressions › Looking for ideas with an expression to get my particles to orbit a sphere
-
Looking for ideas with an expression to get my particles to orbit a sphere
Posted by Jason Karl on February 8, 2012 at 6:41 pmhere is a link to my project file
3655_orblinesrotatecopycs5.aep.zipwhat i am trying to do is get my particles to orbit the sphere in the middle, and leave a trail as they go
any ideas on how to make this work would be greatly appreciated
Thanks
JasonJason Karl replied 14 years, 7 months ago 3 Members · 8 Replies -
8 Replies
-
Jason Karl
February 9, 2012 at 12:02 am3664_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]
-
Jason Karl
February 9, 2012 at 12:50 amYeah 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 amI 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 ameverything 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 ami 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 pmThe 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.
Reply to this Discussion! Login or Sign Up