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

Latest commit

 

History

History
189 lines (161 loc) · 15.7 KB

cp.apple.finalcutpro.main.LibrariesList.md

File metadata and controls

189 lines (161 loc) · 15.7 KB

docs » cp.apple.finalcutpro.main.LibrariesList


Libraries List Module.

API Overview

API Documentation

Functions

| Signature | cp.apple.finalcutpro.main.LibrariesList:clips(filterFn) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets clips using a custom filter. | | Parameters |

  • filterFn - A function to filter the UI results.
| | Returns |
  • A table of Clip objects or nil if no clip UI could be found.
|

| Signature | cp.apple.finalcutpro.main.LibrariesList:clipsUI(filterFn) -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets clip UIs using a custom filter. | | Parameters |

  • filterFn - A function to filter the UI results.
| | Returns |
  • A table of axuielementObject objects or nil if no clip UI could be found.
|

Signature cp.apple.finalcutpro.main.LibrariesList:deselectAll() -> boolean
Type Function
Description Deselect all clips.
Parameters
  • None
Returns
  • true if successful otherwise false.

| Signature | cp.apple.finalcutpro.main.LibrariesList:indexOfClip(clip) -> number | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets the index of a specific clip. | | Parameters |

  • clip - The Clip you want to get the index of.
| | Returns |
  • The index or nil if an error occurs.
|

Signature cp.apple.finalcutpro.main.LibrariesList:selectAll([clips]) -> boolean
Type Function
Description Select all clips.
Parameters
  • clips - A optional table of Clip objects.
Returns
  • true if successful otherwise false.
Signature cp.apple.finalcutpro.main.LibrariesList:selectClip(clip) -> boolean
Type Function
Description Selects a clip.
Parameters
  • clip - The Clip you want to select.
Returns
  • true if successful otherwise false.
Signature cp.apple.finalcutpro.main.LibrariesList:selectClipAt(index) -> boolean
Type Function
Description Select clip at a specific index.
Parameters
  • index - A number of where the clip appears in the list.
Returns
  • true if successful otherwise false.
Signature cp.apple.finalcutpro.main.LibrariesList:selectClipTitled(title) -> boolean
Type Function
Description Select clip with a specific title.
Parameters
  • title - The title of a clip.
Returns
  • true if successful otherwise false.

| Signature | cp.apple.finalcutpro.main.LibrariesList:selectedClips() -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets selected clips. | | Parameters |

  • None
| | Returns |
  • A table of Clip objects or nil if no clips are selected.
|

| Signature | cp.apple.finalcutpro.main.LibrariesList:selectedClipsUI() -> table | nil | | -----------------------------------------------------|---------------------------------------------------------------------------------------------------------| | Type | Function | | Description | Gets selected clips UI's. | | Parameters |

  • None
| | Returns |
  • A table of axuielementObject objects or nil if no clips are selected.
|

Signature cp.apple.finalcutpro.main.LibrariesList:showClip(clip) -> boolean
Type Function
Description Shows a clip.
Parameters
  • clip - The Clip you want to show.
Returns
  • true if successful otherwise false.

Constructors

Signature cp.apple.finalcutpro.main.LibrariesList(app) -> LibrariesList
Type Constructor
Description Creates a new LibrariesList instance.
Parameters
  • parent - The parent object.
Returns
  • A new LibrariesList object.

Fields

Signature cp.apple.finalcutpro.main.LibrariesList.contents <cp.ui.Table>
Type Field
Description The Libraries List Contents UI.
Signature cp.apple.finalcutpro.main.LibrariesList.isFocused <cp.prop: boolean; read-only>
Type Field
Description Checks if the Libraries List is currently focused within FCPX.
Signature cp.apple.finalcutpro.main.LibrariesList.isShowing <cp.prop: boolean; read-only>
Type Field
Description Checks if the Libraries List is showing on screen.
Signature cp.apple.finalcutpro.main.LibrariesList.playerUI <cp.prop: hs._asm.axuielement; read-only>
Type Field
Description The axuielement for the player section of the Libraries List UI.
Signature cp.apple.finalcutpro.main.LibrariesList.playhead <Playhead>
Type Field
Description The Libraries List Playhead.
Signature cp.apple.finalcutpro.main.LibrariesList.skimmingPlayhead <Playhead>
Type Field
Description the Libraries List Skimming Playhead.

Methods

Signature cp.apple.finalcutpro.main.LibrariesList:columns() -> Columns
Type Method
Description Gets the List View Columns object.
Parameters
  • None
Returns
  • A AppearanceAndFiltering object.
Signature cp.apple.finalcutpro.main.LibrariesList:show() -> LibrariesList
Type Method
Description Show the Libraries List.
Parameters
  • None
Returns
  • LibrariesList object