Skip to main content
Participant
July 16, 2020
Answered

Complete object model explanation of extendscript for premiere pro

  • July 16, 2020
  • 1 reply
  • 1610 views

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 topic has been closed for replies.
Correct answer Justin Taylor-Hyper Brew

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.


This is with an AE mogrt in Premiere, not sure if it works with a PPRO exported mogrt.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
July 16, 2020

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

Participant
July 16, 2020

thank you for your reply.

I have tried this but seems like getMgtComponents() methods is returns null in my circumstance...

 

https://github.com/Adobe-CEP/Samples/blob/715fa08b3f267e0183221205353079fc7f8f6d00/PProPanel/jsx/PPRO/Premiere.jsx#L1821

 

Can you successfully change text inside the graphic with this code?

Justin Taylor-Hyper Brew
Community Expert
Community Expert
July 16, 2020

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');