#cp.apple.finalcutpro.timeline.Contents
Timeline Contents Module.
#API Overview
Functions - API calls offered directly by the extension
Constructors - API calls which return an object, typically one that offers API methods
Fields - Variables which can only be accessed from an object returned by a constructor
Methods - API calls which can only be made on an object returned by a constructor
- activePlayhead
- doFocus
- doHide
- doSelectClip
- doSelectClips
- doSelectNone
- doSelectTopClip
- doShow
- rangeSelectionUI
- selectedClipsUI
#API Documentation
#Functions
Signature | cp.apple.finalcutpro.timeline.Contents:clipsUI(expandedGroups, filterFn) -> table of axuielements |
Type | Function |
Description | Returns a table containing the list of clips in the Timeline. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 274 |
Signature | cp.apple.finalcutpro.timeline.Contents.matches(element) -> boolean |
Type | Function |
Description | Checks if an axuielementObject matches the Contents type. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 28 |
Signature | cp.apple.finalcutpro.timeline.Contents:playheadClipsUI(expandedGroups, filterFn) -> table of axuielements |
Type | Function |
Description | Returns a table array containing the list of clips in the Timeline under the playhead, ordered with the highest clips at the beginning of the array. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 345 |
Signature | cp.apple.finalcutpro.timeline.Contents:positionClipsUI(position, expandedGroups, filterFn) -> table of axuielements |
Type | Function |
Description | Returns a table array containing the list of clips in the Timeline at the specified position , ordered with the highest clips at the beginning of the array. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 318 |
Signature | cp.apple.finalcutpro.timeline.Contents:skimmingPlayheadClipsUI(expandedGroups, filterFn) -> table of axuielements |
Type | Function |
Description | Returns a table array containing the list of clips in the Timeline under the skimming playhead, ordered with the highest clips at the beginning of the array. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 363 |
#Constructors
Signature | cp.apple.finalcutpro.timeline.Contents(parent) -> Contents |
Type | Constructor |
Description | Creates a new Timeline Contents instance. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 43 |
#Fields
Signature | cp.apple.finalcutpro.timeline.Contents.children <cp.prop: table; read-only; live> |
Type | Field |
Description | The current set of child elements in the Contents. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 115 |
Signature | cp.apple.finalcutpro.timeline.Contents.isLoaded <cp.prop: booelan; read-only; live> |
Type | Field |
Description | Checks if the Timeline has content loaded. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 139 |
Signature | cp.apple.finalcutpro.timeline.Contents.playhead <cp.apple.finalcutpro.main.Playhead> |
Type | Field |
Description | The main Playhead. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 196 |
Signature | cp.apple.finalcutpro.timeline.Contents.scrollArea <cp.ui.ScrollArea> |
Type | Field |
Description | The ScrollArea for the Contents element. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 94 |
Signature | cp.apple.finalcutpro.timeline.Contents.scrollAreaUI <cp.prop: hs.axuielement; read-only; live> |
Type | Field |
Description | The parent ScrollArea UI of the Timeline Contents area. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 84 |
Signature | cp.apple.finalcutpro.timeline.Contents.selectedChildren <cp.prop: table; read-only; live> |
Type | Field |
Description | The current set of selected child elements in the Contents. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 127 |
Signature | cp.apple.finalcutpro.timeline.Contents.skimmingPlayhead <cp.apple.finalcutpro.main.Playhead> |
Type | Field |
Description | The Playhead that tracks with the mouse pointer. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 203 |
Signature | cp.apple.finalcutpro.timeline.Contents.viewFrame <cp.prop: table; read-only; live> |
Type | Field |
Description | The current 'frame' of the internal timeline content, or nil if not available. |
Notes | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 108 |
#Methods
Signature | cp.apple.finalcutpro.timeline.Contents:activePlayhead() -> Playhead |
Type | Method |
Description | Returns the active Playhead. If the Skimming Playhead is available, return that, otherwise, return the normal Playhead. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 211 |
Signature | cp.apple.finalcutpro.timeline.Contents:doFocus(show) -> cp.rx.go.Statement |
Type | Method |
Description | A Statement which will focus on the Contents . |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 576 |
Signature | cp.apple.finalcutpro.timeline.Contents:doHide() -> cp.rx.go.Statement |
Type | Method |
Description | A Statement that will attempt to hide the Timeline Contents. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 177 |
Signature | cp.apple.finalcutpro.timeline.Contents:doSelectClip(clipUI) -> cp.rx.go.Statement |
Type | Method |
Description | A Statement which will select the specified single hs.axuielement value in the Timeline Contents area. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 529 |
Signature | cp.apple.finalcutpro.timeline.Contents:doSelectClips(clipsUI) -> cp.rx.go.Statement |
Type | Method |
Description | A Statement which will select the specified list of hs.axuielement values in the Timeline Contents area. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 502 |
Signature | cp.apple.finalcutpro.timeline.Contents:doSelectNone() -> cp.rx.go.Statement |
Type | Method |
Description | Returns a Statement that will clear any clip selection. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 480 |
Signature | cp.apple.finalcutpro.timeline.Contents:doSelectTopClip([position]) -> cp.rx.go.Statement |
Type | Method |
Description | Creates a Statement that will select the top clip at the given position, resolving to the top clip if available. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 550 |
Signature | cp.apple.finalcutpro.timeline.Contents:doShow() -> cp.rx.go.Statement |
Type | Method |
Description | A Statement that will attempt to show the Timeline Contents. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 158 |
Signature | cp.apple.finalcutpro.timeline.Contents:rangeSelectionUI() -> axuielements |
Type | Method |
Description | Returns the UI for the current 'Range Selection', if present. |
Parameters |
|
Returns |
|
Notes | None |
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 300 |
Signature | cp.apple.finalcutpro.timeline.Contents:selectedClipsUI(expandedGroups, filterFn) -> table of axuielements |
Type | Method |
Description | Returns a table containing the list of selected clips. |
Parameters |
|
Returns |
|
Notes |
|
Examples | None |
Source | src/extensions/cp/apple/finalcutpro/timeline/Contents.lua line 252 |