EDOBE XDOM TPC Información técnica Pagina 41

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 68
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 40
CHAPTER 4: Scripting with AppleScript Working with the perspective grid 41
Use perspective presets
Illustrator provides default grid-parameter presets for one-point, two-point, and three-point perspectives.
The presets are named
"[1P-NormalView]", "[2P-NormalView]", and "[3P-NormalView]".
The script shows how to select the two-point perspective preset programmatically:
tell application "Adobe Illustrator"
--Create a new document
set docRef to make new document
tell docRef
--Select the default two-point perspective preset
select perspective preset perspective preset "[2P-Normal View]"
end tell
end tell
You can create new perspective presets, export presets to files, and import presets from files. These scripts
shows how to export and import presets:
tell application "Adobe Illustrator"
set docRef to make new document
set filePath to "Macintosh HD:scripting:PGPresetsExported"
export perspective grid preset of docRef to file filePath
end tell
tell application "Adobe Illustrator"
set docRef to make new document
set filePath to "Macintosh HD:scripting:PGPresets"
import perspective grid preset of docRef from file filePath
end tell
Show or hide the grid
This script shows or hides the Perspective Grid programmatically:
tell application "Adobe Illustrator"
--Create a new document
set docRef to make new document
tell docRef
--Display the perspective grid defined in the document
show perspective grid
--Hide the perspective grid defined in the document
hide perspective grid
end tell
end tell
Set the active plane
The perspective grid plane types are:
Left plane
perspective grid plane leftplane
Right plane
perspective grid plane rightplane
Vista de pagina 40
1 2 ... 36 37 38 39 40 41 42 43 44 45 46 ... 67 68

Comentarios a estos manuales

Sin comentarios