Bug in comp.exportAsMotionGraphicsTemplate() when exporting Motion Graphics Templates from ExtendScript in AE 2020
I need to make an automated workflow for versioning motion graphics templates and exporting .mogrt files. I've implemented a .jsx script to do so.
However, when exporting via script using exportAsMotionGraphicsTemplate, the exported .mogrt files loose some properties in their embedded deifnition.json files - they miss eg. default values, default text strings and their menu options arrays are empty.
This means they are not working in Premiere, where the result is empty dropdown menus and text inputs that reset to empty and will only send empty strings to the template regardless of user input.
Attached is a zip file with two examples of mogrts, and their unzipped definition.json files: one is a manual export and works as expected, another is a scripted export with errors.
A diff of the two definition.json files will show the problem with empty values for keys like capsuleparams.capParams.capPropDefault, capsuleparams.capParams.textEditValue and value.strDB.str
best / ole kristensen
DR - Danish Broadcasting Corporation

4 comments
-
Sebastien Perier (AE Quality Engineer) commented
Good to know!
Glad that you got it sorted out, and thank you for reaching out.
Cheers,
Sébastien -
Ole Kristensen commented
I have just discovered that it works if i call comp.openInEssentialGraphics() first.
-
Sebastien Perier (AE Quality Engineer) commented
Hi Ole,
Thanks for your bug report. I'm going to investigate. Is there an email adress where I can reach out to you for further details?
-
Ole Kristensen commented
Here's a diff