Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

How to construct a Rectangle element

$
0
0

I would like to use the Rectangle object described in the help to ExtendScript CS5:

 

>  Rectangle
>  Adobe Illustrator CS5 Type Library
>  Describes a rectangle. This class is also a four-element collection.

 

It has nine properties and methods.

 

This is not the same as PathItems.rectangle().

 

How can I construct a var of type Rectangle?

 

                var rect = new Rectangle

 

results in the error, "Rectangle does not have a constructor"

 

How can I create a var of type Rectangle and then set the values?  I would like to store it in an Array.


Viewing all articles
Browse latest Browse all 12845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>