#cp.apple.finalcutpro.timeline.IndexRoles

Provides access to the 'Roles' section of the Timeline Index


#API Overview

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

#Fields

Signaturecp.apple.finalcutpro.timeline.IndexRoles.activate <cp.ui.RadioButton>
TypeField
DescriptionThe RadioButton that activates the 'Roles' section.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 26

Signaturecp.apple.finalcutpro.timeline.IndexRoles.area <cp.apple.finalcutpro.timeline.IndexRolesArea>
TypeField
DescriptionThe IndexRolesArea containing the list of Role.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 47

Signaturecp.apple.finalcutpro.timeline.IndexRoles.collapseSubroles <cp.ui.Button>
TypeField
DescriptionThe Collapse Subroles Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 94

Signaturecp.apple.finalcutpro.timeline.IndexRoles.editRoles <cp.ui.Button>
TypeField
DescriptionThe Edit Roles... Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 65

Signaturecp.apple.finalcutpro.timeline.IndexRoles.hideAudioLanes <cp.ui.Button>
TypeField
DescriptionThe Hide Audio Lanes Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 85

Signaturecp.apple.finalcutpro.timeline.IndexRoles.list <cp.apple.finalcutpro.timeline.IndexRolesList>
TypeField
DescriptionThe IndexRolesList for the roles.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 58

Signaturecp.apple.finalcutpro.timeline.IndexRoles.showAudioLanes <cp.ui.Button>
TypeField
DescriptionThe Show Audio Lanes Button.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 76

#Methods

Signaturecp.apple.finalcutpro.timeline.IndexRoles:allRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionFinds all Roles, optionally including all Subroles
Parameters
  • includeSubroles - (defaults to false) if true include subroles.
Returns
  • The table of Roles, or nil if no UI is available.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 206

Signaturecp.apple.finalcutpro.timeline.IndexRoles:audioRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionFinds all Audio Roles, optionally including all Subroles
Parameters
  • includeSubroles - (defaults to false) if true include subroles.
Returns
  • The table of Roles, or nil if no UI is available.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 232

Signaturecp.apple.finalcutpro.timeline.IndexRoles:captionRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionFinds all Caption Roles, optionally including all Subroles
Parameters
  • includeSubroles - (defaults to false) if true include subroles.
Returns
  • The table of Roles, or nil if no UI is available.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 245

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doActivate(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will activate the provided role, if it is available. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 274

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doCollapseSubroles() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will collapse subroles, if they are currently expanded.
Parameters
  • None
Returns
  • A Statement
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 135

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doDeactivate(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will deactivate the provided role, if it is available. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 294

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doFocusInTimeline(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will focus the listed role, if it is available and is an AudioRole. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 323

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doHideAudioLanes() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will collapse subroles (if necessary) and hide the audio lanes.
Parameters
  • None
Returns
  • A Statement
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 150

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doHideSubroleLanes(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will hide the subrole lanes for the listed role, if it is available and is an AudioRole. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 383

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doLayout(layout) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will apply the layout provided, if possible.
Parameters
  • layout - the table containing the layout configuration. Usually created via the [#saveLayout] method.
Returns
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 183

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doShowAudioLanes() -> cp.rx.go.Statement
TypeMethod
DescriptionA Statement that will show the Audio Lanes when executed.
Parameters
  • None
Returns
  • A Statement
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 120

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doShowSubroleLanes(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will show subrole lanes for the role, if it is available and is an AudioRole. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 363

Signaturecp.apple.finalcutpro.timeline.IndexRoles:doUnfocusInTimeline(title) -> cp.rx.go.Statement
TypeMethod
DescriptionReturns a Statement that will unfocus the listed role, if it is available and is an AudioRole. This will automatically show and hide the Index if it is not currently visible.
Parameters
  • 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/IndexRoles.lua line 343

Signaturecp.apple.finalcutpro.timeline.IndexRoles:fineRoleTitled(title) -> Role or nil
TypeMethod
DescriptionFinds the Role with the specified title.
Parameters
  • title - The title to match.
Returns
  • The Role with the title, or nil.
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/IndexRoles.lua line 258

Signaturecp.apple.finalcutpro.timeline.IndexRoles:saveLayout() -> table
TypeMethod
DescriptionReturns a table containing the layout configuration for this class.
Parameters
  • None
Returns
  • The layout configuration table.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 166

Signaturecp.apple.finalcutpro.timeline.IndexRoles:videoRoles([includeSubroles]) -> table of Roles
TypeMethod
DescriptionFinds all Video Roles, optionally including all Subroles
Parameters
  • includeSubroles - (defaults to false) if true include subroles.
Returns
  • The table of Roles, or nil if no UI is available.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/timeline/IndexRoles.lua line 219