Skip to main content
ygams
Participant
July 5, 2018
Answered

how to call importMGTFromLibrary method

  • July 5, 2018
  • 1 reply
  • 1297 views

I see there is an importMGTFromLibrary method available in sequence objects when using Premiere's ExtendScript API, but I can't seem to get it working.  I assume it works in a similar way to the importMGT method (the use of which is demonstrated in the code for PProPanel and takes 4 arguments - a file path, a sequence in point, a video track index and an audio track index).

importMGT(mogrtToImport.fsName, targetTime.ticks, vidTrackOffset, audTrackOffset);

How would you go about (if that's the right way to do it) specifying a 'path' for a mogrt stored in an Adobe CC Library when using importMGTFromLibrary? I tried '/LibraryName/FileName.mogrt' and various other combinations and omissions of the file and library name but no cigar... !

This topic has been closed for replies.
Correct answer ygams

Thanks to Bruce Bullis​ answering this one off the back of another question I posted:

sequence.importMGTFromLibrary("Library Name", "MoGRT Name", targetTime.ticks, vidTrackOffset, audTrackOffset);

1 reply

ygams
ygamsAuthorCorrect answer
Participant
August 2, 2018

Thanks to Bruce Bullis​ answering this one off the back of another question I posted:

sequence.importMGTFromLibrary("Library Name", "MoGRT Name", targetTime.ticks, vidTrackOffset, audTrackOffset);

Participant
May 12, 2024

I need the example for the Importing from Local Library in premire pro ( Essential Graphics )