|
Instead of "time" in Mylenium's expression, add a Slider Control to a NULL object (or any other existing layer), pickwhip it's value to a variable t and multiply it by "Math.PI/180". Then use the Slider Control as the rotation angle in degrees: 0 - is the starting angle 360 - is the angle after one full revolve etc. So by keyframing the Slider Control you can control the rotation, and make it stop at any angle you want. It should look something like this:
rCenter=thisComp.layer("center").position; rRadius=200; t = thisComp.layer("Null").effect("Slider Control")("Slider")*Math.PI/180; X=rCenter[0]+Math.sin(t)*rRadius; Y=rCenter[1]; Z=rCenter[2]+Math.cos(t)*rRadius; [X,Y,Z]
Koby.
|