Export .mogrt
export_mogrtExport an After Effects composition as a .mogrt Motion Graphics Template into a chosen folder, saving the project first when needed to avoid a Save As prompt.
Instructions
Export the comp as a Motion Graphics Template (.mogrt) into a folder; the file is named '.mogrt'. The project MUST already be saved to a file (otherwise AE opens a Save As dialog, so this tool refuses); with unsaved changes pass saveProject=true to save it first. Add controllers with add_to_essential_graphics beforehand.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"folder": "<folder>"
},
"name": "export_mogrt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Composition name, 'Folder/Name' path, or item id. Omit to use the active composition. | |
| folder | Yes | Absolute output folder (created if missing). | |
| overwrite | No | Replace an existing file (default false). | |
| saveProject | No | Save the project to its existing file first if it has unsaved changes (default false). | |
| templateName | No | Template name = file name (default: current template name, or the comp name). |