how can i distribute circle shape layers "helix"

Moderators: Disciple, zlovatt

Post Reply
spinia
Posts: 2
Joined: November 25th, 2008, 3:09 am

Hi everyone,

I am new here and am in need of some help :)
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

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
[Pour Mylène, ange sur terre]
spinia
Posts: 2
Joined: November 25th, 2008, 3:09 am

thank you !!!

how can i attach a slider expression to that .... so that i can animate it
kobyg
Posts: 128
Joined: December 7th, 2007, 10:11 am

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.
Post Reply