Copy link to clipboard
Copied
Hello all.
I wonder if this is possible in a javascript:
An object is selected.
A. Run script
B. Fill in value in two fields B2: (Radius (or Diameter) and a B3: Number of objects
C. This gives two different values based on a calculation (Horizontal and Vertical)
D. The Effect > Distort & Transform > Transform… panel is opened and it input fields now have
the value B3 (minus 1) in the Copies field (B2 is not needed) and
the two new values from C in the Horizontal and Vertical input fields.
The point by this is to be able to distribute copies of an object in a circle where the original object is at posistion 12 (top) and the diameter of the circle is a known size.
I already made me a calculator to figure this out but my dream would be to have a script or panel that would do the calculation and send the result to the Tramsform panel.
The Calculator is here: IllustratorCircleCalculation.xlsx
An article that explains is here: http://font.is/calculate-multiple-objects-in-a-circle-in-illustrator/
I would love to hear some advice. Actually if someone would like to make this I would gladly hand out the formulas behind the calculator.
Hi Sigurdur, unfortunately there's no access to Effects or Native Dialog Fields...it might be possible to hack sending keystrokes to illustrator, but that's a crazy idea.
I would be more inclined to Select an Object then run a script to distribute a Number of Copies around any given Circle, as in your clock tutorial...that sounds doable with javascript.
Copy link to clipboard
Copied
It is an interesting idea, a compelling exercise. As for myself, when needed to dynamically distribute objects radially about a center point such as a clock face, I've been able to do so by creating an empty path segment from the object to the center, and using the bottom-middle anchor point as transformation reference. Thus, I was able to natively place transform effects on the art to control the amount of objects and the angle with ease. The clear path can be used to dynamically change the radius.
That being said, I'm sure some scripters would like to create this as a quick exercise!
Copy link to clipboard
Copied
This is a very cool way to do it too.
Copy link to clipboard
Copied
Hi Sigurdur, unfortunately there's no access to Effects or Native Dialog Fields...it might be possible to hack sending keystrokes to illustrator, but that's a crazy idea.
I would be more inclined to Select an Object then run a script to distribute a Number of Copies around any given Circle, as in your clock tutorial...that sounds doable with javascript.
Copy link to clipboard
Copied
Ok, so that is the matter.
When I tried to use the Transform the way I wanted I really wanted to be able to decide the dimension. You both have two new ways to handle this.
Thanks for the assistance.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more