#cp.apple.finalcutpro.plugins

Scans an entire system for Final Cut Pro Effects, Generators, Titles & Transitions.

Usage:

require("cp.apple.finalcutpro"):plugins():scan()

#Submodules


#API Overview

Constants - Useful values which cannot be changed

Functions - API calls offered directly by the extension

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


#API Documentation

#Constants

Signaturecp.apple.finalcutpro.plugins.types -> table
TypeConstant
DescriptionTable of the different audio/video/transition/generator types.
NotesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 255

#Functions

Signaturecp.apple.finalcutpro.plugins.clearCaches() -> boolean
TypeFunction
DescriptionClears any local caches created for tracking the plugins.
Parameters
  • None
Returns
  • true if the caches have been cleared successfully.
Notes
  • Does not uninstall any of the actual plugins.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1499

Signaturecp.apple.finalcutpro.plugins.new(fcp) -> plugins object
TypeFunction
DescriptionCreates a new Plugins Object.
Parameters
  • fcp - The cp.apple.finalcutpro object
Returns
  • The plugins object
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1828

Signaturecp.apple.finalcutpro.plugins:scan() -> none
TypeFunction
DescriptionScans Final Cut Pro for Effects, Transitions, Generators & Titles
Parameters
  • fcp - the cp.apple.finalcutpro instance
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1684

Signaturecp.apple.finalcutpro.plugins:scanAppEffectsPresets(locale) -> none
TypeFunction
DescriptionScans Final Cut Pro Built-in Effects Presets
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 419

Signaturecp.apple.finalcutpro.plugins.scanned() -> boolean
TypeFunction
DescriptionGets if the system has been scanned.
Parameters
  • None
Returns
  • true is scanned otherwise false.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1725

Signaturecp.apple.finalcutpro.plugins:scanSystemAudioUnits(locale) -> none
TypeFunction
DescriptionScans for Validated Audio Units, and saves the results to a cache for faster subsequent startup times.
Parameters
  • locale - the locale to scan in.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 314

Signaturecp.apple.finalcutpro.plugins:scanUserColorPresets(locale) -> none
TypeFunction
DescriptionScans Final Cut Pro User Color Presets
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 528

Signaturecp.apple.finalcutpro.plugins:scanUserEffectsPresets(locale) -> none
TypeFunction
DescriptionScans Final Cut Pro Effects Presets
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 439

#Methods

Signaturecp.apple.finalcutpro.plugins:app() -> plugins
TypeMethod
DescriptionReturns the cp.apple.finalcutpro object.
Parameters
  • None
Returns
  • The cp.apple.finalcutpro object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1339

Signaturecp.apple.finalcutpro.plugins:audioEffects([locale]) -> table
TypeMethod
DescriptionFinds the 'audio effect' plugins.
Parameters
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1393

Signaturecp.apple.finalcutpro.plugins:effectBundleStrings() -> table
TypeMethod
DescriptionReturns all the Effect Bundle Strings.
Parameters
  • None
Returns
  • The effect bundle strings in a table.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1062

Signaturecp.apple.finalcutpro.plugins:effectStrings() -> table
TypeMethod
DescriptionReturns a table of Effects Strings.
Parameters
  • None
Returns
  • A table of effect strings.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1294

Signaturecp.apple.finalcutpro.plugins:generators([locale]) -> table
TypeMethod
DescriptionFinds the 'generator' plugins.
Parameters
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1435

Signaturecp.apple.finalcutpro.plugins:ofType(type[, locale]) -> table
TypeMethod
DescriptionFinds the plugins of the specified type (types.videoEffect, etc.) and if provided, locale.
Parameters
  • type - The plugin type. See types for the complete list.
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins of the specified type.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1352

Signaturecp.apple.finalcutpro.plugins:registerPlugin(path, type, categoryName, themeName, pluginName, locale) -> plugin
TypeMethod
DescriptionRegisters a plugin with the specified details.
Parameters
  • path - The path to the plugin directory.
  • type - The type of plugin
  • categoryName - The category name, in the specified locale.
  • themeName - The theme name, in the specified locale. May be nil if not in a theme.
  • pluginName - The plugin name, in the specified locale.
  • locale - The cp.i18n.localeID or string code for same (e.g. "en", "fr", "de")
Returns
  • The plugin object.
Notes
  • locale defaults to the current Final Cut Pro locale if nothing is supplied.
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 991

Signaturecp.apple.finalcutpro.plugins:reset() -> none
TypeMethod
DescriptionResets all the cached plugins.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1048

Signaturecp.apple.finalcutpro.plugins:scanAll() -> nil
TypeMethod
DescriptionScans all supported locales, loading them into memory.
Parameters
  • None
Returns
  • Nothing
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1738

Signaturecp.apple.finalcutpro.plugins:scanAppAudioEffectBundles() -> none
TypeMethod
DescriptionScans the Audio Effect Bundles directories.
Parameters
  • directoryPath - Directory to scan
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1100

Signaturecp.apple.finalcutpro.plugins:scanAppBuiltInPlugins([locale]) -> None
TypeMethod
DescriptionScan Built In Plugins.
Parameters
  • locale - The cp.i18n.localeID code to search for. Defaults to the current FCPX langauge.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1449

Signaturecp.apple.finalcutpro.plugins:scanAppEdelEffects() -> none
TypeMethod
DescriptionScans for Soundtrack Pro EDEL Effects.
Parameters
  • None
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1275

Signaturecp.apple.finalcutpro.plugins:scanAppMotionTemplates(locale) -> none
TypeMethod
DescriptionScans for app-provided Final Cut Pro Plugins.
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1132

Signaturecp.apple.finalcutpro.plugins:scanPluginCategoryDirectory(locale, path, plugin) -> boolean
TypeMethod
DescriptionScans a folder as a plugin category folder. The contents will be folders that are either theme folders or actual plugins.
Parameters
  • locale - The locale to scan with.
  • path - The path to the plugin type directory
  • plugin - A table containing the plugin details collected so far.
Returns
  • true if the folder was scanned successfully.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 901

Signaturecp.apple.finalcutpro.plugins:scanPluginsDirectory(locale, path, filter) -> boolean
TypeMethod
DescriptionScans a root plugins directory.
Parameters
  • locale - The locale code to scan for (e.g. "en" or "fr").
  • path - The path of the root plugin directory to scan.
  • checkFn - A function which will receive the path being scanned and return true if it should be scanned.
Returns
  • true if the plugin directory was successfully scanned.
Notes
  • Plugins directories have a standard structure which comes in two flavours:
  • ** //.
  • ** ///.
  • ** ////.
  • This is somewhat complicated by 'localization', wherein each of the folder levels may have a .localized extension. If this is the case, it will contain a subfolder called .localized, which in turn contains files which describe the local name for the folder in any number of locales.
  • This function will drill down through the contents of the specified path, assuming the above structure, and then register any contained plugins in the locale provided. Other locales are ignored, other than some use of English when checking for specific effect types (Effect, Generator, etc.).
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 754

Signaturecp.apple.finalcutpro.plugins:scanPluginThemeDirectory(locale, path, plugin) -> boolean
TypeMethod
DescriptionScans a folder as a plugin theme folder. The contents will be plugin folders.
Parameters
  • locale - The locale to scan with.
  • path - The path to the plugin type directory
  • plugin - A table containing the plugin details collected so far.
Returns
  • true if the folder was scanned successfully.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 938

Signaturecp.apple.finalcutpro.plugins:scanSystemMotionTemplates(locale) -> none
TypeMethod
DescriptionScans for system-provided Final Cut Pro Plugins.
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1214

Signaturecp.apple.finalcutpro.plugins:scanUserMotionTemplates(locale) -> none
TypeMethod
DescriptionScans for user-provided Final Cut Pro Plugins.
Parameters
  • locale - The locale to scan for.
Returns
  • None
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1156

Signaturecp.apple.finalcutpro.plugins:titles([locale]) -> table
TypeMethod
DescriptionFinds the 'title' plugins.
Parameters
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1407

Signaturecp.apple.finalcutpro.plugins:transitions([locale]) -> table
TypeMethod
DescriptionFinds the 'transitions' plugins.
Parameters
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1421

Signaturecp.apple.finalcutpro.plugins:translateEffectBundle(input, locale) -> none
TypeMethod
DescriptionTranslates an Effect Bundle Item.
Parameters
  • input - The original name
  • locale - The locale code you want to attempt to translate to
Returns
  • The translated value for input in the specified locale, if present.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1084

Signaturecp.apple.finalcutpro.plugins:unwatch(id) -> watcher
TypeMethod
DescriptionUnwatches a watcher with a specific ID.
Parameters
  • id - The ID of the watcher to stop watching.
Returns
  • The watcher object.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1774

Signaturecp.apple.finalcutpro.plugins:videoEffects([locale]) -> table
TypeMethod
DescriptionFinds the 'video effect' plugins.
Parameters
  • locale - The locale code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
  • A table of the available plugins.
NotesNone
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1379

Signaturecp.apple.finalcutpro.plugins:watch(events) -> watcher
TypeMethod
DescriptionAdds a watcher for the provided events table.
Parameters
  • events - A table of events to watch.
Returns
  • The watcher object
Notes
  • The events can be:
  • ** videoEffects
  • ** audioEffects
  • ** transitions
  • ** titles
  • ** generators
ExamplesNone
Sourcesrc/extensions/cp/apple/finalcutpro/plugins.lua line 1753