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.