O'Reilly logo

Perspective Drawing in Adobe Illustrator CS5 by Kaushik Agarwala, Gaurav Jain

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required