Closed shaibruhis closed 2 years ago
The problem (also described here) is the .mogrt file I was importing was a ppro .mogrt file and not an ae .mogurt file. I wasn't aware this would cause a problem and am not sure how to tell the difference (other than dir/file naming) but mgt_clip.getMGTComponent()
only works for ae .mogrt files
Hi @shaibruhis ,
I fixed the crash for mgt_clip.getMGTComponent()
. It should now properly return None to match the behavior of the Premiere API (ccfa2d74c678f066bae154752a0b62c9e9296536).
I seems indeed that there are two types of Motion Graphics templates, you can difference them in the editing interface where some are simple an assembly of Premiere Pro effects and other are more complicated options exposed from After Effects.
The first type will return None for the getMGTComponent
because you can directly access the effects parameters via the Clip.components
attribute. Note that both of them will return True to Clip.isMGT()
I will update my documentation to explain this!
Following the Motion Graphics Example for adding text I get the following error: