• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Complete object model explanation of extendscript for premiere pro

Community Beginner ,
Jul 15, 2020 Jul 15, 2020

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.

TOPICS
Effects and Titles , How to , Import , SDK

Views

926

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 16, 2020 Jul 16, 2020

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

Votes

Translate

Translate
Community Expert ,
Jul 15, 2020 Jul 15, 2020

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 15, 2020 Jul 15, 2020

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...

 

https://github.com/Adobe-CEP/Samples/blob/715fa08b3f267e0183221205353079fc7f8f6d00/PProPanel/jsx/PPR...

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2020 Jul 16, 2020

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

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 16, 2020 Jul 16, 2020

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines