Plugin
interface Plugin
Represents a runtime Motion Canvas plugin.
Properties
name
name: string
A unique name of the plugin.
The name should be unique across the entire ecosystem of Motion Canvas. If a plugin with the same name has already been registered, this plugin will be ignored.
If you intend to publish your plugin to npm, it is recommended to prefix this name with the name of your npm package.
Other identifiers defined by the plugin, such as a tab id, will be automatically prefixed with this name and as such don't have to be unique.
Methods
exporters
public exportersproject: Project: ExporterClass[]
Provide custom exporters for the project.
Parameters
project: ProjectThe project instance.
player
public playerplayer: Player: void
Receive the player instance right after it is initialized.
Parameters
player: PlayerThe player instance.
presenter
public presenterpresenter: Presenter: void
Receive the presenter instance right after it is initialized.
Parameters
presenter: PresenterThe presenter instance.
project
public projectproject: Project: void
Receive the project instance right after it is initialized.
Parameters
project: ProjectThe project instance.
renderer
public rendererrenderer: Renderer: void
Receive the renderer instance right after it is initialized.
Parameters
renderer: RendererThe renderer instance.
settings
public settingssettings: ProjectSettings: voidProjectSettings
Modify the project settings before the project is initialized.
Parameters
settings: ProjectSettingsThe project settings.