EDOBE XDOM TPC Información técnica Pagina 40

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 68
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 39
CHAPTER 4: Scripting with AppleScript Working with the perspective grid 40
Creating a rectangle
Consider the following sample:
tell application "Adobe Illustrator"
set docRef to make new document
set rectRef to make new rectangle in docRef with properties ?
{bounds:{288, 360, 72, 144}}
end tell
The sample creates a rectangle with these properties:
X The top-right corner of the of the rectangle is inset 4 inches (288 points) from the bottom of the page
and 5 inches (360 points) from the left edge of the page.
X The lower-left corner of the rectangle is inset 1 inch (72 points) from the left edge of the page and
2 inches (144 points) from the bottom of the page.
Creating a polygon
Consider the following sample:
tell application "Adobe Illustrator"
set docRef to make new document
set pathRef to make new polygon in docRef with properties ?
{center point:{144, 288},sides:7,radius:72.0}
end tell
The sample creates a polygon with these properties:
X The center point of the object is inset is 2 inches (144 points) on the horizontal axis and 4 inches
(288 points) on the vertical axis.
X The polygon has 7 sides.
X The length of the radius from the center point to each corner is 1 inch (72 points).
Working with the perspective grid
The Perspective Grid is a new feature in Illustrator CS5 that enables you to create and manipulate art in a
spatial environment using established laws of perspective. Enable Perspective Grid using the View >
Perspective Grid menu or the perspective tools in the toolbar.
The SDK provides an API for working with the perspective grid programmatically, and your scripts have
some access to this API. A script can:
X Set a the default grid parameters using preset values.
X Show or hide the grid.
X Set the active plane.
X Draw an object in perspective on the active plane.
X Bring an object into perspective.
Vista de pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 67 68

Comentarios a estos manuales

Sin comentarios