B. Scripting Support for Perspective Drawing

Adobe Illustrator provides scripting capabilities to automate workflows. The scripting interface in Illustrator supports VBScript on Windows; AppleScript on Mac OS; and JavaScript, a platform-independent scripting language. This section describes the program’s scripting capabilities for perspective drawing in detail.

The SDK provides an API for working with the perspective grid programmatically; in addition, the application provides a scripting interface that has some access to this API layer. A script can:

• Define a grid in a document using presets

• Show or hide the grid

• Get/Set the active plane

• Draw an object in perspective on the active plane

• Bring an object into perspective

The examples ...

Get Perspective Drawing in Adobe Illustrator CS5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.