Skip to main content
Inspiring
January 27, 2021
Answered

Cut and paste clips from a sequence to another, via scripting

  • January 27, 2021
  • 1 reply
  • 667 views

Hello!

Like the subject says, is it possible? I would like to cut (or paste, but cut is preferred) some selected clips and paste them into another sequence, keeping all the properties (effects, keyframe, volume ecc).

 

Thanks!

This topic has been closed for replies.
Correct answer Ivan Stepanov

You could try to match cut/paste partially by getting projectItem of selected clip, match in/out points and insert/overwrite it on another sequence's track. Then match intrinsic properties (motion, opacity, volume). Though there will be limitations, like no masks information, keyframes could only be set to linear (there is a bug in setInterpolationTypeAtKey() command).

 

1 reply

Ivan Stepanov
Ivan StepanovCorrect answer
Legend
January 27, 2021

You could try to match cut/paste partially by getting projectItem of selected clip, match in/out points and insert/overwrite it on another sequence's track. Then match intrinsic properties (motion, opacity, volume). Though there will be limitations, like no masks information, keyframes could only be set to linear (there is a bug in setInterpolationTypeAtKey() command).

 

Cad81Author
Inspiring
January 27, 2021

Thanks Ivan,

yeah, i was already thinking of doing so, but i was hoping there was a dedicated method 😞

Maybe is there a method for nesting? With some workaround, i could use it.

 

 

 

Ivan Stepanov
Legend
January 27, 2021