docs » cp.apple.finalcutpro.plugins
Scan Final Cut Pro bundle for Effects, Generators, Titles & Transitions.
Usage:
require("cp.apple.finalcutpro"):plugins():scan()
Signature
cp.apple.finalcutpro.plugins.appBuiltinPlugins
Type
Constant
Description
Table of built-in plugins
Signature
cp.apple.finalcutpro.plugins.appEdelEffects
Type
Constant
Description
Table of Built-in Soundtrack Pro EDEL Effects.
Signature
cp.apple.finalcutpro.plugins.audioUnitsCache
Type
Constant
Description
Path to the Audio Units Cache
Signature
cp.apple.finalcutpro.plugins.coreAudioPreferences
Type
Constant
Description
Core Audio Preferences File Path
Signature
cp.apple.finalcutpro.plugins.types
Type
Constant
Description
Table of the different Motion Template Extensions
Signature
cp.apple.finalcutpro.plugins.clearCaches() -> boolean
Type
Function
Description
Clears any local caches created for tracking the plugins.
Parameters
Returns
* true
if the caches have been cleared successfully.
Signature
cp.apple.finalcutpro.plugins:scan() -> none
Type
Function
Description
Scans Final Cut Pro for Effects, Transitions, Generators & Titles
Parameters
fcp - the cp.apple.finalcutpro
instance
Returns
Signature
cp.apple.finalcutpro.plugins:audioEffects([language]) -> table
Type
Method
Description
Finds the 'audio effect' plugins.
Parameters
* language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins.
Signature
cp.apple.finalcutpro.plugins:generators([language]) -> table
Type
Method
Description
Finds the 'generator' plugins.
Parameters
* language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins.
Signature
cp.apple.finalcutpro.plugins:ofType(type[, language]) -> table
Type
Method
Description
Finds the plugins of the specified type (types.videoEffect
, etc.) and if provided, language.
Parameters
* type
- The plugin type. See types
for the complete list. * language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins of the specified type.
Signature
cp.apple.finalcutpro.plugins:registerPlugin(path, type, categoryName, themeName, pluginName, language) -> plugin
Type
Method
Description
Registers a plugin with the specified details.
Parameters
path
- The path to the plugin directory.type
- The type of plugincategoryName
- The category name, in the specified language.themeName
- The theme name, in the specified language. May be nil
if not in a theme.pluginName
- The plugin name, in the specified language.language
- The language code (e.g. "en", "fr", "de")
Signature
cp.apple.finalcutpro.plugins:scanAll() -> nil
Type
Method
Description
Scans all supported languages, loading them into memory.
Parameters
Returns
Signature
cp.apple.finalcutpro.plugins:scanPluginsDirectory(language, path, filter) -> boolean
Type
Method
Description
Scans a root plugins directory. Plugins directories have a standard structure which comes in two flavours:
Parameters
language
- The language 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.
Signature
cp.apple.finalcutpro.plugins:titles([language]) -> table
Type
Method
Description
Finds the 'title' plugins.
Parameters
* language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins.
Signature
cp.apple.finalcutpro.plugins:transitions([language]) -> table
Type
Method
Description
Finds the 'transitions' plugins.
Parameters
* language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins.
Signature
cp.apple.finalcutpro.plugins:videoEffects([language]) -> table
Type
Method
Description
Finds the 'video effect' plugins.
Parameters
* language
- The language code to search for (e.g. "en"). Defaults to the current FCPX langauge.
Returns
* A table of the available plugins.
Signature
cp.apple.finalcutpro.plugins:watch(events) -> id
Type
Method
Description
Adds a watcher for the provided events table. The table can have the following functions: