Skip to main content
Known Participant
October 17, 2022
Answered

Best way to insert MOGRT into sequence? (Are docs out of date?)

  • October 17, 2022
  • 1 reply
  • 1176 views

I'm working on automatically inserting MOGRTs and setting values programatically with a script. 

 

I don't see anywhere in the official docs for how to do this. 

https://ppro-scripting.docsforadobe.dev/index.html

 

The only MOGRT related function I see on here at all is "getMGTComponent" which is to select components and properties of an already-inserted MOGRT trackItem.

 

Now, I AM actually familar with the sequenceItem.importMGT method. I wonder tough, has this function been deprecated? I can't find it in the docs. And I am having some issues getting it to work. 

 

The issue I am having with importMGT is that in addition to adding the MOGRT to the timeline, it ALSO imports duplicate projectItems into the project of the entire track V1 up to that point. (FWIW, I am inserting the MOGRT on V2). 

 

Any idea why this might be?  

 

Thanks,

-dv

 

 

This topic has been closed for replies.
Correct answer Bruce Bullis

There have been no changes to, or deprecation of, importMGT(). It's a documentation bug; we'll add it, thanks! 

>...Any idea why this might be?  

None. 🙂

Please send a .prproj, a .mogrt, and ExtendScript snippet that reliably reproduce the problem, and we'd be happy to take a look. 




1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
October 17, 2022

There have been no changes to, or deprecation of, importMGT(). It's a documentation bug; we'll add it, thanks! 

>...Any idea why this might be?  

None. 🙂

Please send a .prproj, a .mogrt, and ExtendScript snippet that reliably reproduce the problem, and we'd be happy to take a look. 




Known Participant
October 17, 2022

Great thanks Bruce. On that note, it looks like "importMGTFromLibrary" is also not in the docs. The only thing that turns up "mogrt" in a search is TrackItem.getMGTComponent()

 

I am using non-traditional scripting workflow actually-- a third party python package called Pymiere. It basically maps python functions into extend script and sends commands to Premiere. So the issue about the duplicate project Items may a bug related to that. 

Bruce Bullis
Legend
October 18, 2022

> I am using...Pymiere.

[Developer sees that PPro integration requires ExtendScript, hosted via a web page, based on JavaScript]: "I know what this needs! ANOTHER layer of language abstraction!"

😉

Kidding!

I love Python, and given its popularity in the post/VFX community, am unsurprised at the Pymiere effort. 

Happy to investigate specific failure cases, given the requested info.