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

Latest commit

 

History

History
253 lines (217 loc) · 21.3 KB

cp.apple.finalcutpro.main.GeneratorsBrowser.md

File metadata and controls

253 lines (217 loc) · 21.3 KB

docs » cp.apple.finalcutpro.main.GeneratorsBrowser


Generators Browser Module.

API Overview

API Documentation

Constants

Signature cp.apple.finalcutpro.main.GeneratorsBrowser.TITLE -> string
Type Constant
Description Titles & Generators Title.

Variables

Signature cp.apple.finalcutpro.main.GeneratorsBrowser.isShowing <cp.prop: boolean>
Type Variable
Description Is the Generators Browser showing?

Constructors

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

Fields

Signature cp.apple.finalcutpro.main.GeneratorsBrowser.contents <cp.ui.ScrollArea>
Type Field
Description The Generators Browser Contents.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser.group <cp.ui.PopUpButton>
Type Field
Description The group.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser.mainGroupUI <cp.prop: axuielementObject>
Type Field
Description Main Group UI.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser.search <cp.ui.TextField>
Type Field
Description Gets the Search TextField object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser.sidebar <cp.ui.Table>
Type Field
Description The sidebar object.

Methods

Signature cp.apple.finalcutpro.main.GeneratorsBrowser:applyItem(itemUI) -> GeneratorsBrowser
Type Method
Description Applies an item by double clicking on it.
Parameters
  • itemUI - The axuielementObject of the item you want to apply.
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:currentItemsUI() -> axuielementObject
Type Method
Description Gets the current items UI.
Parameters
  • None
Returns
  • axuielementObject object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:getCurrentTitles() -> table
Type Method
Description Returns the list of titles for all generators currently visible.
Parameters
  • None
Returns
  • A table
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:getGeneratorsRowLabel() -> string
Type Method
Description Gets a Generators Row Label.
Parameters
  • None
Returns
  • The Generators Row Label as string.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:getTitlesRowLabel() -> string
Type Method
Description Returns the label of the 'Titles' row in the current language.
Parameters
  • None
Returns
  • The 'Titles' label.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:hide() -> GeneratorsBrowser
Type Method
Description Hides the Generators Browser.
Parameters
  • None
Returns
  • The GeneratorsBrowser instance.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:itemIsSelected(itemUI) -> boolean
Type Method
Description Checks to see if an item is selected.
Parameters
  • itemUI - A axuielementObject to check.
Returns
  • true if the item is selected, otherwise false.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:loadLayout(layout) -> none
Type Method
Description Loads a Generators Browser layout.
Parameters
  • layout - A table containing the Generators Browser layout settings - created using cp.apple.finalcutpro.main.GeneratorsBrowser:saveLayout().
Returns
  • None
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:saveLayout() -> table
Type Method
Description Saves the current Generators Browser layout to a table.
Parameters
  • None
Returns
  • A table containing the current Effects Browser Layout.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:selectedItemsUI() -> axuielementObject
Type Method
Description Gets the selected items UI.
Parameters
  • None
Returns
  • axuielementObject object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:show() -> GeneratorsBrowser
Type Method
Description Shows the Generators Browser.
Parameters
  • None
Returns
  • The GeneratorsBrowser instance.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showAllGenerators() -> GeneratorsBrowser
Type Method
Description Show All Generators.
Parameters
  • None
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showAllTitles() -> GeneratorsBrowser
Type Method
Description Ensures the sidebar is showing in the Generators & Titles panel, focused on all 'Titles'.
Parameters
  • None
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showGeneratorsCategory(name) -> GeneratorsBrowser
Type Method
Description Show a specific Generators Category.
Parameters
  • name - The name of the Generators Category to show.
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showInstalledGenerators() -> GeneratorsBrowser
Type Method
Description Ensures that the browser is showing 'Installed Generators'.
Parameters
  • None
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showInstalledTitles() -> GeneratorsBrowser
Type Method
Description Ensures that the browser is showing 'Installed Titles'.
Parameters
  • None
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showSidebar() -> GeneratorsBrowser
Type Method
Description Ensures the sidebar is showing in the Generators & Titles panel.
Parameters
  • None
Returns
  • The GeneratorsBrowser object.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:showTitlesCategory(name) -> self
Type Method
Description Ensures the sidebar is showing and that the selected 'Titles' category is selected, if available.
Parameters
  • name - The category name, in the current language.
Returns
  • The Generators Browser.
Signature cp.apple.finalcutpro.main.GeneratorsBrowser:topCategoriesUI() -> table
Type Method
Description Returns an array of the top-level categories in the sidebar.
Parameters
  • None
Returns
  • The array of category rows.