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

How do I establish a rectangle using a script?

New Here ,
Jan 31, 2010 Jan 31, 2010

I would like to set up multiple AI in rectangular, how should such scripts do? if you knew, the ability to provide a sample. thank you.

TOPICS
Scripting
439
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
Adobe
Guru ,
Feb 01, 2010 Feb 01, 2010
LATEST

pathItems has a basic shape constructors to match those found in the GUI.

#target illustrator

var docRef = app.activeDocument;

with (docRef) {

pathItems.polygon(width/2, height/2, 100, 3, false); // A triangle

pathItems.rectangle(height, 0, width, height, false); // A rectangle

}

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