Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

A script that can send values to the Transform panel?

Engaged ,
Jul 14, 2015 Jul 14, 2015

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.

TOPICS
Scripting
951
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 14, 2015 Jul 14, 2015

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.

Translate
Adobe
Valorous Hero ,
Jul 14, 2015 Jul 14, 2015

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. 2015-07-14 09_41_55-.jpgThat being said, I'm sure some scripters would like to create this as a quick exercise!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 14, 2015 Jul 14, 2015

This is a very cool way to do it too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2015 Jul 14, 2015

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 14, 2015 Jul 14, 2015
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines