Page 1 of 1

how can i distribute circle shape layers "helix"

Posted: November 25th, 2008, 11:05 am
by spinia
Hi everyone,

I am new here and am in need of some help :)

Re: how can i distribute circle shape layers "helix"

Posted: November 26th, 2008, 5:27 am
by Mylenium

Code: Select all

sRev=12; //number of elements per revolution
sAng=degreesToRadians(360/segRev);
sRad=50; //helix radius
sOff=20; //helix offset

X=Math.sin(sAng*index)*sRad;
Y=sOff*(index-1);
Z=Math.cos(sAng*index)*sRad;

[X,Y,Z]
Mylenium

Re: how can i distribute circle shape layers "helix"

Posted: November 26th, 2008, 9:46 am
by spinia
thank you !!!

how can i attach a slider expression to that .... so that i can animate it

Re: how can i distribute circle shape layers "helix"

Posted: November 26th, 2008, 12:49 pm
by kobyg
It depends on what you want to animate...
If you want to animate the radius of the helix, link the "sRad" parameter to a slider.
If you want to animate the radius of the helix, link the "sOff" parameter to a slider.
etc.