#cp.apple.finalcutpro.timeline.IndexRolesList

Timeline Index Roles List.


#API Overview

Methods - API calls which can only be made on an object returned by a constructor


#API Documentation

#Methods

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:allRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionReturns the list of caption Roles in the current list.
Parameters
  • includeSubroles - if true, include Subroles, otherwise exclude them.
Returns
  • A table of Roles, or nil if no UI is available currently.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 111

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:audioRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionReturns the list of all audio Roles in the current list.
Parameters
  • includeSubroles - if true, include Subroles, otherwise exclude them.
Returns
  • A table of Roles, or nil if no UI is available currently.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 98

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doActivate(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will activate the provided role, if it is available.
Parameters
  • title - The title of the Role to activate.
Returns
Notes
  • The title can be the English name (eg. "Video", "Titles", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 144

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doDeactivate(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will deactivate the provided role, if it is available.
Parameters
  • title - The title of the Role to deactivate.
Returns
Notes
  • The title can be the English name (eg. "Video", "Titles", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 165

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doFocusInTimeline(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will focus the provided AudioRole, if it is available.
Parameters
  • title - The title of the Role to activate.
Returns
Notes
  • The title can be the English name (eg. "Video", "Titles", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 186

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doHideSubroleLanes(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will hide subrole lanes for the provided AudioRole, if it is available.
Parameters
  • title - The title of the Role.
Returns
Notes
  • The title can be the English name (eg. "Dialogue", "Music", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 249

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doShowSubroleLanes(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will show subrole lanes for the provided AudioRole, if it is available.
Parameters
  • title - The title of the Role.
Returns
Notes
  • The title can be the English name (eg. "Dialogue", "Music", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 228

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:doUnfocusInTimeline(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will unfocus the provided AudioRole, if it is available.
Parameters
  • title - The title of the Role to activate.
Returns
Notes
  • The title can be the English name (eg. "Dialogue", "Music", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 207

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:filterRoles([matcherFn]) -> table of Roles or nil
TypeMethod
DescriptionFilters the current list of Roles based on the given matchesFn predicate.
Parameters
  • matchesFn - the matcher function. If not provided, no additional filtering occurs.
Returns
  • The table of Role, or nil if no UI is currently available.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 50

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:findRoleTitled(title) -> Role or nil
TypeMethod
DescriptionReturns the Role with the specified title.
Parameters
  • title - The title of the role to find.
Returns
  • The Role, or nil if it can't be found.
Notes
  • The title can be the English name (eg. "Video", "Titles", etc.) for default Roles, and it will find the correct role in the current FCPX language.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 124

Signaturecp.apple.finalcutpro.timeline.IndexRolesList:videoRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionReturns the list of all video Roles in the current list.
Parameters
  • includeSubroles - if true, include Subroles, otherwise exclude them.
Returns
  • A table of Roles, or nil if no UI is available currently.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRolesList.lua line 85