viewoptions
ViewOptions object
Section titled “ViewOptions object”app.activeViewer.views[0].options
Description
Section titled “Description”The ViewOptions object represents the options for a given View object
Example
Section titled “Example”This enables checkerboards and locks guides for a given view
var activeViewer = app.activeViewer;var viewOptions = activeViewer.views[0].options;viewOptions.checkerboards = true;viewOptions.guidesLocked = true;Attributes
Section titled “Attributes”ViewOptions.channels
Section titled “ViewOptions.channels”app.activeViewer.views[0].options.channels
Description
Section titled “Description”The state of the Channels menu.
A ChannelType enumerated value; read/write. One of:
CHANNEL_ALPHACHANNEL_ALPHA_BOUNDARYCHANNEL_ALPHA_OVERLAYCHANNEL_BLUECHANNEL_BLUE_COLORIZECHANNEL_GREENCHANNEL_GREEN_COLORIZECHANNEL_REDCHANNEL_RED_COLORIZECHANNEL_RGBCHANNEL_RGB_STRAIGHT
ViewOptions.checkerboards
Section titled “ViewOptions.checkerboards”app.activeViewer.views[0].options.checkerboards
Description
Section titled “Description”When true, checkerboards (transparency grid) is enabled in the current view.
Boolean; read/write.
ViewOptions.exposure
Section titled “ViewOptions.exposure”app.activeViewer.views[0].options.exposure
Description
Section titled “Description”The exposure value for the current view.
Floating-point value, in the range [-40..40]
ViewOptions.fastPreview
Section titled “ViewOptions.fastPreview”app.activeViewer.views[0].options.fastPreview
Description
Section titled “Description”The state of the Fast Previews menu. This is a read/write attribute using an enumerated value:
If you try to get or set the attribute’s value in the Layer or Footage panel, you’ll get an error message.
A FastPreviewType enumerated value; read/write. One of:
FastPreviewType.FP_OFF: Off (Final Quality)FastPreviewType.FP_ADAPTIVE_RESOLUTION: Adaptive ResolutionFastPreviewType.FP_DRAFT: DraftFastPreviewType.FP_FAST_DRAFT: Fast DraftFastPreviewType.FP_WIREFRAME: Wireframe
Example
Section titled “Example”app.activeViewer.views[0].options.fastPreview === FastPreviewType.FP_ADAPTIVE_RESOLUTION;app.activeViewer.views[0].options.fastPreview === FastPreviewType.FP_DRAFT;app.activeViewer.views[0].options.fastPreview === FastPreviewType.FP_FAST_DRAFT;app.activeViewer.views[0].options.fastPreview === FastPreviewType.FP_OFF;app.activeViewer.views[0].options.fastPreview === FastPreviewType.FP_WIREFRAME;ViewOptions.guidesLocked
Section titled “ViewOptions.guidesLocked”app.activeViewer.views[0].options.guidesLocked
Description
Section titled “Description”When true, indicates guides are locked in the view.
Boolean; read/write.
Example
Section titled “Example”app.activeViewer.views[0].options.guidesLocked;ViewOptions.guidesSnap
Section titled “ViewOptions.guidesSnap”app.activeViewer.views[0].options.guidesSnap
Description
Section titled “Description”When true, indicates layers snap to guides when dragged in the view.
Boolean; read/write.
Example
Section titled “Example”app.activeViewer.views[0].options.guidesSnap;ViewOptions.guidesVisibility
Section titled “ViewOptions.guidesVisibility”app.activeViewer.views[0].options.guidesVisibility
Description
Section titled “Description”When true, indicates guides are visible in the view.
Boolean; read/write.
Example
Section titled “Example”app.activeViewer.views[0].options.guidesVisibility;ViewOptions.rulers
Section titled “ViewOptions.rulers”app.activeViewer.views[0].options.rulers
Description
Section titled “Description”When true, indicates rulers are shown in the view.
Boolean; read/write.
Example
Section titled “Example”app.activeViewer.views[0].options.rulers;ViewOptions.zoom
Section titled “ViewOptions.zoom”app.activeViewer.views[0].options.zoom
Description
Section titled “Description”Sets the current zoom value for the view, as a normalized percentage between 1% (0.01) and 1600% (16).
Floating-point value, in the range [0.01..16]