Highlighted

Complete object model explanation of extendscript for premiere pro

New Here ,
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.

Adobe Community Professional
Correct answer by justintaylor | Adobe Community Professional

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

TOPICS
Effects and Titles, How to, Import, SDK

Views

68

Likes

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

Complete object model explanation of extendscript for premiere pro

New Here ,
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.

Adobe Community Professional
Correct answer by justintaylor | Adobe Community Professional

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

TOPICS
Effects and Titles, How to, Import, SDK

Views

69

Likes

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
Jul 15, 2020 0
Adobe Community Professional ,
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

Likes

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
Reply
Loading...
Jul 15, 2020 0
New Here ,
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?

Likes

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
Reply
Loading...
Jul 15, 2020 0
Adobe Community Professional ,
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');

 

Likes

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
Reply
Loading...
Jul 16, 2020 0
New Here ,
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.

Likes

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
Reply
Loading...
Jul 16, 2020 0
Adobe Community Professional ,
Jul 16, 2020

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jul 16, 2020 0