docs » cp.apple.finalcutpro.viewer.Viewer
Viewer Module.
- Functions - API calls offered directly by the extension
- matches
- Constructors - API calls which return an object, typically one that offers API methods
- Viewer
- Fields - Variables which can only be accessed from an object returned by a constructor
- betterQuality
- contentsUI
- controlBar
- frame
- framerate
- getFormat
- hasPlayerControls
- infoBar
- isEventViewer
- isMainViewer
- isOnPrimary
- isOnSecondary
- playButton
- playerQuality
- timecode
- timecodeField
- title
- usingProxies
- Methods - API calls which can only be made on an object returned by a constructor
- app
- currentWindow
- doHide
- doShowOnPrimary
- doShowOnSecondary
- hide
- notifier
- showOnPrimary
- showOnSecondary
Signature | cp.apple.finalcutpro.viewer.Viewer.matches(element) -> boolean |
---|---|
Type | Function |
Description | Checks to see if an element matches what we think it should be. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer(app, eventViewer) -> Viewer |
---|---|
Type | Constructor |
Description | Creates a new Viewer instance. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer.betterQuality <cp.prop: boolean> |
---|---|
Type | Field |
Description | Indicates if the viewer is using playing with better quality (true ) or performance (`false). |
Signature | cp.apple.finalcutpro.viewer.Viewer.contentsUI <cp.prop: hs._asm.axuielement; read-only> |
---|---|
Type | Field |
Description | Provides the axuielement for the media contents of the Viewer, or nil if not available. |
Signature | cp.apple.finalcutpro.viewer.Viewer.controlBar <cp.apple.finalcutpro.viewer.ControlBar> |
---|---|
Type | Field |
Description | Provides the ControlBar for this Viewer . |
Signature | cp.apple.finalcutpro.viewer.Viewer.frame <cp.prop: table; read-only> |
---|---|
Type | Field |
Description | Returns the current frame for the viewer, or nil if it is not available. |
Signature | cp.apple.finalcutpro.viewer.Viewer.framerate <cp.prop: number; read-only> |
---|---|
Type | Field |
Description | Provides the framerate as a number, or nil if not available. |
Signature | cp.apple.finalcutpro.viewer.Viewer.getFormat <cp.prop: string; read-only> |
---|---|
Type | Field |
Description | Provides the format text value, or nil if none is available. |
Signature | cp.apple.finalcutpro.viewer.Viewer.hasPlayerControls <cp.prop: boolean; read-only> |
---|---|
Type | Field |
Description | Checks if the viewer has Player Controls visible. |
Signature | cp.apple.finalcutpro.viewer.Viewer.infoBar <cp.apple.finalcutpro.viewer.InfoBar> |
---|---|
Type | Field |
Description | Provides the InfoBar for this Viewer . |
Signature | cp.apple.finalcutpro.viewer.Viewer.isEventViewer <cp.prop: boolean> |
---|---|
Type | Field |
Description | Returns true if this is the Event Viewer. |
Signature | cp.apple.finalcutpro.viewer.Viewer.isMainViewer <cp.prop: boolean> |
---|---|
Type | Field |
Description | Returns true if this is the main Viewer. |
Signature | cp.apple.finalcutpro.viewer.Viewer.isOnPrimary <cp.prop: boolean; read-only> |
---|---|
Type | Field |
Description | Checks if the Viewer is showing on the Primary Window. |
Signature | cp.apple.finalcutpro.viewer.Viewer.isOnSecondary <cp.prop: boolean; read-only> |
---|---|
Type | Field |
Description | Checks if the Viewer is showing on the Secondary Window. |
Signature | cp.apple.finalcutpro.viewer.Viewer.playButton <cp.ui.Button> |
---|---|
Type | Field |
Description | The Play Button object. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer.playerQuality <cp.prop: string> |
---|---|
Type | Field |
Description | The current player quality value. |
Signature | cp.apple.finalcutpro.viewer.Viewer.timecode <cp.prop: string; live> |
---|---|
Type | Field |
Description | The current timecode value, with the format "hh:mm:ss:ff". Setting also supports "hh:mm:ss;ff". |
Signature | cp.apple.finalcutpro.viewer.Viewer.timecodeField <cp.ui.StaticText> |
---|---|
Type | Field |
Description | The StaticText containing the timecode value. |
Signature | cp.apple.finalcutpro.viewer.Viewer.title <cp.ui.StaticText> |
---|---|
Type | Field |
Description | Provides the Title of the clip in the Viewer as a StaticText |
Signature | cp.apple.finalcutpro.viewer.Viewer.usingProxies <cp.prop: boolean> |
---|---|
Type | Field |
Description | Indicates if the viewer is using Proxies (true ) or Optimized/Original media (false ). |
Signature | cp.apple.finalcutpro.viewer.Viewer:app() -> application |
---|---|
Type | Method |
Description | Returns the application. |
Parameters |
|
Returns |
|
| Signature | cp.apple.finalcutpro.viewer.Viewer:currentWindow() -> PrimaryWindow | SecondaryWindow
|
| -----------------------------------------------------|---------------------------------------------------------------------------------------------------------|
| Type | Method |
| Description | Gets the current window object. |
| Parameters |
- None
- The
PrimaryWindow
or theSecondaryWindow
.
Signature | cp.apple.finalcutpro.viewer.Viewer:doHide() -> cp.rx.go.Statement |
---|---|
Type | Method |
Description | A Statement that hides the Viewer. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:doShowOnPrimary() -> cp.rx.go.Statement |
---|---|
Type | Method |
Description | A Statement that shows the Viewer on the Primary display. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:doShowOnSecondary() -> cp.rx.go.Statement |
---|---|
Type | Method |
Description | A Statement that shows the Viewer on the Secondary display. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:hide() -> self |
---|---|
Type | Method |
Description | Hides the Viewer. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:notifier() -> cp.ui.notifier |
---|---|
Type | Method |
Description | Returns a notifier that is tracking the application UI element. It has already been started. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:showOnPrimary() -> self |
---|---|
Type | Method |
Description | Shows the Viewer on the Primary display. |
Parameters |
|
Returns |
|
Signature | cp.apple.finalcutpro.viewer.Viewer:showOnSecondary() -> self |
---|---|
Type | Method |
Description | Shows the Viewer on the Seconary display. |
Parameters |
|
Returns |
|