Insert Mogrt From Library
Inserts a Motion Graphics Template from an Adobe Library into a sequence. videoTrackIndex and audioTrackIndex are 0-based (0 = first track / V1 / A1). Use -1 to disable video or audio placement for MOGRT insertion. This block is for Adobe Library elements, not for Premiere's local Local Templates / My Templates area. Use this only for Adobe Library elements, not for Premiere's local Local Templates / My Templates area. If the user refers to Local Templates, first resolve the local .mogrt file path and then use prInsertMogrtFromPath instead. Track indices are 0-based (0 = first track / V1 / A1). Use audioTrackIndex = -1 for video-only templates and videoTrackIndex = -1 for audio-only templates. The same null-track fallback behavior as prInsertMogrtFromPath applies. If sequence is omitted, the block uses the active sequence when supported. Use onError to decide whether errors stop the script, continue, or return false when the block supports it. If storeResultIn is set, the block also writes a result variable back to your graph.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
libraryName | yes | expression | string | — |
elementName | yes | expression | string | — |
sequence | no | expression | reference, string, null | — |
timeSeconds | yes | expression | number | — |
videoTrackIndex | no | expression | number | — |
audioTrackIndex | no | expression | number | — |
onError | no | expression | enum-string | STOP, CONTINUE, RETURN_FALSE |
storeResultIn | no | variable-name | variable-name | — |
Notes
- Inserts a Motion Graphics Template from an Adobe Library into a sequence.
- Use this only for Adobe Library elements, not for Premiere's local
Local Templates/My Templatesarea. - If the user refers to
Local Templates, first resolve the local.mogrtfile path and then useprInsertMogrtFromPathinstead. - Track indices are 0-based (
0= first track / V1 / A1). - Use
audioTrackIndex = -1for video-only templates andvideoTrackIndex = -1for audio-only templates. - The same null-track fallback behavior as
prInsertMogrtFromPathapplies.
See Also
- Premiere Reference Paths: Explains Premiere reference path strings for project items, sequences, tracks, timeline items, markers, components, and parameters.