Sg2.9
Roulettes
Recent RSS
Creator:  Håkan Lundgren
Date:  18. April 2010, 06:57

I have expanded on the Spiro script by adding three more types of roulettes and a couple of other functions.

R is the stator, the wheel which the rotor (r) revolves around (or inside of).
d sets the drawing point distance from the rotors center on the epitrochoid and the hypotrochoid roulettes.
Plot/angle controls how often a new point will be plotted.

I have intentionally left out the pointsToCurve command because it didn't seem to plot the graph as exact as I wanted. The script will generate quite a few points so either increase the plot/angle value or run the Path/Simplify function afterwards.

Check out these on wikipedia, it's quite interesting to read.
Epicycloid
Epitrochoid
Hypocycloid
Hypotrochoid

11/04/18 * UPDATE *
Updated this script to work with the new Scriptographer UI. Let me know if there are any snags.

Re: Fixed
From:  Jeff Fried
Date:  26. July 2010, 20:34

Is there something i can call to get the library to translate to the old coordinate system or will i have to rewrite these scripts to get them to work in CS5? If the latter, is there a way to recognize CS4 vs CS5 so that i can update the script to work for both?

Re: Fixed
Date:  26. July 2010, 21:07

I guess you could put a line, or two, in that moves the ruler origin at the bottom left of the artboard (found here). Unless you don't want to run through the code and manualy change the Y-coordinates in the entire script.

There is also two commands that checks what versions of SG and AI you're running. Just check the
Reference page > Scriptographer Package > Scriptographer > version
and
Reference page > Scriptographer Package > Application > version
respectively.

Re: Fixed
From:  Jürg Lehni
Date:  26. July 2010, 22:15

It's not that the scripts don't work. Adobe just decided to flip the displayed values of coordinates between CS4 and CS5, while internally they are still stored in the way you use them in Sg. So this is something that is tricky for any Sg script to handle, as scripts should be compatible across versions.

My proposal is to simply set the 0-point at the lower left corner and then just negate the Y-values in your head when you deal with values in the script VS values displayed in the Ai UI.

Re: Fixed
From:  mefjuu
Date:  18. February 2011, 12:29

Could anyone help me? The settings in dialogbox are "frozen"... I can change nothing except pushing 'Render'.
I'm using AI CS4 and latest SG version (2.9.071)

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19