Copy link to clipboard
Copied
Where can I find complete documentation for Object Model??
https://premiere-scripting-guide.readthedocs.io/
this document does not explain importMGT method which should be in Sequence object...
I want to know which object will be returned when I used importMGT().
and how can I update the text of graphic created from mgt file.
This is with an AE mogrt in Premiere, not sure if it works with a PPRO exported mogrt.
Copy link to clipboard
Copied
Those docs are community-run, so it's not always up to date. Check between that and the examples in the Adobe GitHub . There's an example of using importMGT() in the sample panel:
https://github.com/Adobe-CEP/Samples/blob/master/PProPanel/jsx/PPRO/Premiere.jsx
Copy link to clipboard
Copied
thank you for your reply.
I have tried this but seems like getMgtComponents() methods is returns null in my circumstance...
Can you successfully change text inside the graphic with this code?
Copy link to clipboard
Copied
Yes, you can change a value, here's an example of changing a text value in a motion graphics template:
var clip = app.project.activeSequence.videoTracks[4].clips[0];
var mgt = clip.getMGTComponent();
var prop = mgt.properties.getParamForDisplayName("Small Text");
prop.setValue('test');
Copy link to clipboard
Copied
Thank you for your reply.
Is this mogrt file is created by AE or PPro??
I tried so many times, but when I use mogrt file created in ppro, getMGTComponent() return null value.
Copy link to clipboard
Copied
This is with an AE mogrt in Premiere, not sure if it works with a PPRO exported mogrt.