Skip to main content
johnt53984649
Inspiring
July 7, 2019
Answered

Change Speed of Clip with Scripting

  • July 7, 2019
  • 2 replies
  • 1508 views

Is it possible to use an Extendscript script in Premiere Pro to change the speed of a clip?  If so, can you provide an example on how this would be done?  I suspected that it would be somewhere in clips.components, but that only seems to contain opacity and motion values.

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer Bruce Bullis

While a panel can get clip speed, and detect whether a given clip is reversed, there's no supported API today for changing clip speed.

What's the entire workflow, which you'd like to support?

2 replies

Bruce Bullis
Bruce BullisCorrect answer
Legend
July 8, 2019

While a panel can get clip speed, and detect whether a given clip is reversed, there's no supported API today for changing clip speed.

What's the entire workflow, which you'd like to support?

Participant
November 10, 2023

I'm trying to create a shortcut key that turns on/off backward playback of the selected TrackItem.

(Because there is no corresponding option in 'Command' in keyboard shortcut settings)

function ReverseTrackItem(trackItem) {
    var orgStart = trackItem.start;    // if 10
    var orgEnd = trackItem.end;        // if 20

    // Reverse ?
    trackItem.start = orgEnd;          // result 20
    trackItem.end = orgStart;          // result 20
}

I tried this, but it doesn't work as expected. 

If there isn't an API yet, is there another way that doesn't go through the API?