Hi, everyone
I tried new API(
) .But Motion Graphics Templates API is not working.
My Premiere Pro version is 12.1.1(Build 10) and windows10 OS(Japan).
Could you tell me if you know anythings.
var activeSeq = app.project.activeSequence; if (activeSeq) { var filterString = ""; if (Folder.fs === 'Windows'){ filterString = "Motion Graphics Templates:*.mogrt"; } var mogrtToImport = File.openDialog ( "Choose MoGRT", // title filterString, // filter available files? false); // allow multiple? if (mogrtToImport){ var targetTime = activeSeq.getPlayerPosition(); var vidTrackOffset = 2; var audTrackOffset = 1; var newTrackItem = activeSeq.importMGT( mogrtToImport.fsName, targetTime.ticks, vidTrackOffset, audTrackOffset); if (newTrackItem){ //var moComp = newTrackItem.getMGTComponent(); //this function return Undefined var moComp = newTrackItem.components[2]; // Simple Web Caption.mogrt if (moComp){ var params = moComp.properties; var srcTextParam = params.getParamForDisplayName("Source Text"); if (srcTextParam){ var val = srcTextParam.getValue(); srcTextParam.setValue("New value set by PProPanel!"); } } } } else { app.setSDKEventMessage('Unable to import ' + mogrtToImport.fsName + '.', 'error'); } }
thanks