Skip to main content
andymees@aje
Legend
January 27, 2020
Answered

Using ExtendScript to insert (animated) Responsive Design MOGRTs

  • January 27, 2020
  • 1 reply
  • 834 views

Hi All

 

I have a panel that parses external text ('myText') and timing data ('timecodeIn' and 'timecodeOut') and uses that to import/place Essential Graphic elements into my active sequence. My code for placing / manipulating the MOGRT text and timings is quoted below.

 

It's working well with all my test MOGRT files except those that contain both keyframed animation and protected regions (ie have Responsive Design tags) .

Using MOGRT files with protected regions but no animation works just fine.

Using MOGRT files with 'unprotected' keyframed animation (ie those that have no Responsive Design tags) works fine. 

Manually adding the exact same MOGRT elements that contain both keyframed animation and protected regions and then (manually) manipulating the in/out and start/end points, so as to match the automation inserts also works as intended.

But the automated inserts don't seem to respect the Responsive Deisgn protection regions ... that is to say that in my tests, the elements do not animate on/off, indeed there is nothing shown at all (as if the element has not yet animated on, or has already animated off).

 

Has anyone else experienced anything like this? 

Many thanks for any help.

 

Cheers

Andy

 

var newTrackItem = activeSeq.importMGT(moPath, timecodeIn, targetTrack, 0);
if (newTrackItem){
newTrackItem.inPoint = timecodeIn.seconds;
newTrackItem.outPoint = timecodeOut.seconds;
newTrackItem.end = timecodeOut.seconds;
newTrackItem.name = srtSubtitle;

var moComp = newTrackItem.getMGTComponent();

if (moComp){
var srcTextParam = moComp.properties.getParamForDisplayName(targetField);
if (srcTextParam){
srcTextParam.setValue(myText);
}
}
}

 

 

 

This topic has been closed for replies.
Correct answer andymees@aje

Thanks Bruce, I'll send you a link to my panel and test MOGRT files.

1 reply

Bruce Bullis
Legend
January 27, 2020

Haven't heard of a problem like this, but; please send me a 'responsive design' .mogrt that replicates the problem, and step-by-step instructions on how we can see the problem. 

andymees@aje
andymees@ajeAuthorCorrect answer
Legend
January 28, 2020

Thanks Bruce, I'll send you a link to my panel and test MOGRT files.