#cp.apple.finalcutpro.main.LibrariesBrowser

Libraries Browser 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


#API Documentation

#Functions

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:deselectAll() -> boolean
TypeFunction
DescriptionDeselect all clips.
Parameters
  • None
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 590

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:indexOfClip(clip) -> number | nil
TypeFunction
DescriptionGets 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.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 489

#Constructors

Signaturecp.apple.finalcutpro.main.LibrariesBrowser(app) -> LibrariesBrowser
TypeConstructor
DescriptionCreates a new LibrariesBrowser instance.
Parameters
  • parent - The parent object.
Returns
  • A new LibrariesBrowser object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 47

#Fields

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.clipFiltering <cp.ui.PopUpButton>
TypeField
DescriptionThe Clip Filtering PopUpButton.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 247

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.filmstrip <LibrariesFilmstrip>
TypeField
DescriptionThe LibrariesFilmstrip object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 269

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.isFilmstripView <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the Library Browser is in 'filmstrip view' mode.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 96

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.isFocused <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the Libraries Browser is the current focus.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 79

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.isListView <cp.prop: boolean; read-only>
TypeField
DescriptionIndicates if the Library Browser is in 'list view' mode.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 89

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.list <LibrariesList>
TypeField
DescriptionThe LibrariesList object.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 276

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.mainGroupUI <cp.prop: hs.axuielement; read-only>
TypeField
DescriptionReturns the main group within the Libraries Browser, or nil if not available..
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 67

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.search <cp.ui.TextField>
TypeField
DescriptionThe Search TextField.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 238

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.searchToggle <cp.ui.Button>
TypeField
DescriptionThe Search Toggle Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 229

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.toggleViewMode <cp.ui.Button>
TypeField
DescriptionThe Toggle View Mode Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 220

#Methods

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:clips(filterFn) -> table | nil
TypeMethod
DescriptionGets 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.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 378

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:clipsUI(filterFn) -> table | nil
TypeMethod
DescriptionGets 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.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 359

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doFindClips(filter) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement which will send each clip in the Libraries Browser matching the filter as an onNext signal.
Parameters
  • filter - a function which receives the Clip to check and returns true or false.
Returns
  • The Statement.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 528

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doFindClipsTitled(title) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement which will send each clip in the Libraries Browser with the specified title as an onNext signal.
Parameters
  • title - The title string to check for.
Returns
  • The Statement.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 541

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doHide() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will hide the Libraries Browser.
Parameters
  • None
Returns
  • The Statement.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 161

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doOpenClipTitled(title) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will attempt to open the named clip in the Libraries Browser in the Timeline.
Parameters
  • title - The title of the clip to open.
Returns
  • The Statement to execute.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 340

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doSelectClipTitled(title) -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement which will select the first clip with a matching title.
Parameters
  • title - The title to select.
Returns
  • The Statement ready to execute.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 554

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:doShow() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will show the Libraries Browser.
Parameters
  • None
Returns
  • The Statement object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 129

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:hide() -> LibrariesBrowser
TypeMethod
DescriptionHide the Libraries Browser.
Parameters
  • None
Returns
  • The LibrariesBrowser object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 147

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:loadLayout(layout) -> none
TypeMethod
DescriptionLoads a Libraries Browser layout.
Parameters
  • layout - A table containing the Libraries Browser layout settings - created using cp.apple.finalcutpro.main.LibrariesBrowser:saveLayout().
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 626

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:openClipTitled(name) -> boolean
TypeMethod
DescriptionOpen a clip with a specific title.
Parameters
  • name - The name of the clip you want to open.
Returns
  • true if successful, otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 309

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:playhead() -> Playhead
TypeMethod
DescriptionGets the Libraries Browser Playhead.
Parameters
  • None
Returns
  • A Playhead object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 180

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:saveLayout() -> table
TypeMethod
DescriptionSaves the current Libraries Browser layout to a table.
Parameters
  • None
Returns
  • A table containing the current Libraries Browser Layout.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 607

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectAll([clips]) -> boolean
TypeMethod
DescriptionSelect all clips.
Parameters
  • clips - A optional table of Clip objects.
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 573

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectClip(clip) -> boolean
TypeMethod
DescriptionSelects a clip.
Parameters
  • clip - The Clip you want to select.
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 452

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectClipAt(index) -> boolean
TypeMethod
DescriptionSelect clip at a specific index.
Parameters
  • index - A number of where the clip appears in the list.
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 472

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectClipTitled(title) -> boolean
TypeMethod
DescriptionSelect clip with a specific title.
Parameters
  • title - The title of a clip.
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 506

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectedClips() -> table | nil
TypeMethod
DescriptionGets selected clips.
Parameters
  • None
Returns
  • A table of Clip objects or nil if no clips are selected.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 416

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectedClipsUI() -> table | nil
TypeMethod
DescriptionGets selected clips UI's.
Parameters
  • None
Returns
  • A table of axuielementObject objects or nil if no clips are selected.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 397

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:selectLibrary(...) -> Table
TypeMethod
DescriptionSelects a Library.
Parameters
  • ... - Libraries as string.
Returns
  • A Table object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 296

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:show() -> LibrariesBrowser
TypeMethod
DescriptionShow the Libraries Browser.
Parameters
  • None
Returns
  • The LibrariesBrowser object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 109

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:showClip(clip) -> boolean
TypeMethod
DescriptionShows a clip.
Parameters
  • clip - The Clip you want to show.
Returns
  • true if successful otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 435

Signaturecp.apple.finalcutpro.main.LibrariesBrowser.sidebar <cp.apple.finalcutpro.main.LibrariesSidebar>
TypeMethod
DescriptionThe LibrariesSidebar Table
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 283

Signaturecp.apple.finalcutpro.main.LibrariesBrowser:skimmingPlayhead() -> Playhead
TypeMethod
DescriptionGets the Libraries Browser Skimming Playhead.
Parameters
  • None
Returns
  • A Playhead object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/main/LibrariesBrowser.lua line 197