User Guide
Core objects 15
filePathForRevert
string The path to the file from which this
document was opened, which is expressed
as file://URL, or
null if created from
scratch.
filePathForSave
string The location to which this document was
saved, which is expressed as file://URL, or
null if never saved.
fills •
array Array of Fill objects that are available for
use in the document (for more information,
see “Fill object” on page 64).
frameCount
integer The number of frames in the
current document.
frameLoopingCount
integer –1 — don’t repeat
0 — repeat forever
> 0 — repeat this number of times
frames •
array Array of Frame objects in the document
(for more information, see “Frame object”
on page 65).
gammaPreview
Boolean If set to true, the document should be
previewed in opposite-platform gamma.
If set to
false, the document colors
are unadjusted.
gradients •
array Array of Gradient objects that are available
for use in the document (for more
information, see “Gradient object”
on page 66).
gridColor
string A color string that specifies the color of the
grid display (for more information, see
“Color string data type” on page 11).
gridOrigin
point Used to set the origin of the grid.
Corresponds to the point set when
dragging the ruler origin from the upper-left
of the document when rulers are visible.
gridSize
point gridSize.x is the horizontal grid size;
gridSize.y is the vertical grid size.
guides •
object Guides object (for more information, see
“Guides object” on page 67).
Property Data type Notes