Using ExtendScript to insert (animated) Responsive Design MOGRTs
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);
}
}
}