Skip to content

viewer

app.activeViewer

The Viewer object represents a Composition, Layer, or Footage panel.

This maximizes the active viewer panel, and displays its type if it contains a composition.

var activeViewer = app.activeViewer;
activeViewer.maximized = true;
if (activeViewer.type === ViewerType.VIEWER_COMPOSITION) {
alert("Composition panel is active.");
}

viewer.active

When true, indicates if the viewer panel is focused, and thereby frontmost.

Boolean; read-only.


viewer.activeViewIndex

The index of the current active View object, in the Viewer.views array.

Integer; read/write.


viewer.maximized

When true, indicates if the viewer panel is at its maximized size.

Boolean; read/write.


viewer.views

All of the Views associated with this viewer.

Array of View object objects; read-only.


viewer.type

The content in the viewer panel.

A ViewerType enumerated value; read-only. One of:

  • ViewerType.VIEWER_COMPOSITION
  • ViewerType.VIEWER_LAYER
  • ViewerType.VIEWER_FOOTAGE

viewer.setActive()

Moves the viewer panel to the front and places focus on it, making it active. Calling this method will set the viewer’s active attribute to true.

None.

Boolean indicating if the viewer panel was made active.