FORUMS: list search recent posts

Oval motion

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
John Madison
Oval motion
on Jan 3, 2014 at 10:44:09 pm

Hi,

I am using the following expression to arrange layers in a circular pattern in z space.

radius=thisComp.layer("Geometry Ctrl").effect("Radius")("Slider");
layer_num=index-(thisComp.layer("Geometry Ctrl").effect("Index ctrl")("Slider"));
interval=thisComp.layer("Geometry Ctrl").effect("Interval")("Slider");
angle = degrees_to_radians(layer_num*interval);
x=radius*Math.cos(angle);
y=0
z=radius*Math.sin(angle);
add(0, [x, y,z]);


The layers are parented to a null, so when I rotate the null (y axis) all the layers rotate. So far so good. The question is how can I change the expression so that the arrangement is in an OVAL path as opposed to the current circular path?


Return to posts index

Xavier Gomez
Re: Oval motion
on Jan 3, 2014 at 11:24:40 pm
Last Edited By Xavier Gomez on Jan 3, 2014 at 11:26:44 pm

x=radiusX*Math.cos(angle);
y=0;
z=radiusZ*Math.sin(angle);

(you need 2 sliders).
Xavier.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]