Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
248 lines (211 loc) · 20.8 KB

cp.apple.finalcutpro.viewer.Viewer.md

File metadata and controls

248 lines (211 loc) · 20.8 KB

docs » cp.apple.finalcutpro.viewer.Viewer


Viewer Module.

API Overview

API Documentation

Functions

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
  • element - An axuielementObject to check.
Returns
  • true if matches otherwise false

Constructors

Signature cp.apple.finalcutpro.viewer.Viewer(app, eventViewer) -> Viewer
Type Constructor
Description Creates a new Viewer instance.
Parameters
  • app - The FCP application.
  • eventViewer - If true, the viewer is the Event Viewer.
Returns
  • The new Viewer instance.

Fields

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
  • None
Returns
  • A Button
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).

Methods

Signature cp.apple.finalcutpro.viewer.Viewer:app() -> application
Type Method
Description Returns the application.
Parameters
  • None
Returns
  • The application.

| Signature | cp.apple.finalcutpro.viewer.Viewer:currentWindow() -> PrimaryWindow | SecondaryWindow | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Method | | Description | Gets the current window object. | | Parameters |

  • None
| | Returns |
  • The PrimaryWindow or the SecondaryWindow.
|

Signature cp.apple.finalcutpro.viewer.Viewer:doHide() -> cp.rx.go.Statement
Type Method
Description A Statement that hides the Viewer.
Parameters
  • None
Returns
  • The Statement, resolving to true, or sends an error.
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
  • None
Returns
  • The Statement, which resolves to true, or sends an error message.
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
  • None
Returns
  • The Statement, resolving to true, or sending an error message.
Signature cp.apple.finalcutpro.viewer.Viewer:hide() -> self
Type Method
Description Hides the Viewer.
Parameters
  • None
Returns
  • Self
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
  • None
Returns
  • The notifier.
Signature cp.apple.finalcutpro.viewer.Viewer:showOnPrimary() -> self
Type Method
Description Shows the Viewer on the Primary display.
Parameters
  • None
Returns
  • Self
Signature cp.apple.finalcutpro.viewer.Viewer:showOnSecondary() -> self
Type Method
Description Shows the Viewer on the Seconary display.
Parameters
  • None
Returns
  • Self