Files
vectorcraft/crates
dotCooCoo 9ffec7e72d Scripts: perspective grid members and getPresetSettings for scripts
A document in the script object model can now show and hide its
perspective grid, read and set the active plane, and reset the grid to
a built-in or saved preset, as the Document page lists them
(https://ai-scripting.docsforadobe.dev/jsobjref/Document/). The values
come from the PerspectiveGridType and PerspectiveGridPlaneType
enumerations on the scripting constants page. app.getPresetSettings
returns a new DocumentPreset with the settings that a document made
from the named startup preset starts with, and addDocument accepts it
back without changes.

- showPerspectiveGrid, hidePerspectiveGrid and setActivePlane run
  perspective.grid.show and perspective.plane.set. They add no undo
  step, and a failed run restores the grid. A run that only changes the
  grid's view state no longer adds an undo step. A run in which a
  command records its own undo step still adds one.
- selectPerspectivePreset throws, and leaves the grid unchanged, when
  the preset name is not listed, when the preset's grid is not of
  gridType, when gridType is InvalidPerspectiveGridType, and when the
  name is longer than 4,096 bytes. A one-point grid accepts only the
  left and floor planes.
- The workspace methods, loadColorSettings, showPresets and the
  perspective grid preset file methods throw an error that says they
  are not available yet.

Docs: docs/mcp.md, docs/target-app-parity.md.
2026-11-21 18:07:11 -08:00
..
2026-11-19 15:24:38 +07:00
2026-11-19 06:08:29 -08:00
2026-11-20 06:07:45 +07:00