Skip to main content
ilya_ananyev
Participating Frequently
March 27, 2019
Answered

Set duration of MOGRT

  • March 27, 2019
  • 1 reply
  • 1035 views

Hello guys,

I'm facing an issue by setting new duration of imported mogrt in a sequence in Premiere Pro 12.1.2 (Build 69). What I've done is: imported a mogrt to my project, created a sequence with some video/audio content, and added the mogrt to the sequence. Hier is how it looks:

According to the documentation, there should be a setSpeed function on the trackItem. So, I've tried several ways to call this function:

1) app.project.sequences[0].videoTracks[1].clips[0].setSpeed(1.0, "00;00;10;00", false, false, true);

2) qe.project.getSequenceAt(0).getVideoTrackAt(1).getItemAt(0).setSpeed(1.0, "00;00;10;00", false, false, true);

None of these objects have setSpeed function.

I dug into the video track and noticed, that if I call qe.project.getSequenceAt(0).getVideoTrackAt(0) there are two items inside of it (one is type "clip" and the other type "empty"), while calling qe.project.getSequenceAt(0).getVideoTrackAt(1) there is only one item with type "empty". Is there anything I'm missing?

Post moved from Extensions / Add-ons Development to Premiere Pro SDK. [Moderator]

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

I'm not sure why you're using the QE DOM, at all...? QE DOM trackItems don't have a setSpeed() method.

Once you have the trackItem corresponding to the .mogrt (see PProPanel's example usage), you can adjust its duration.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
March 29, 2019

I'm not sure why you're using the QE DOM, at all...? QE DOM trackItems don't have a setSpeed() method.

Once you have the trackItem corresponding to the .mogrt (see PProPanel's example usage), you can adjust its duration.