I am trying to implement this functionality in my UXP panel. In the video I’m dragging the scale value left and right, Premiere shows the preview, and once I release the mouse button, a single undo step (history entry) is created.
The second video shows what I want to avoid - when I drag the slider, a new undo step is created for each value the slider has while dragging. This was implemented by calling project.executeTransaction
on every slider value change.
I’ve tried to reuse the compoundAction
I get in the callback for the executeTransaction
function, but adding actions with compoundAction.addAction
does nothing once the call to executeTransaction
is finished. I’ll post a link to an example in a second post here, as I can include only two links as a new user.
Is there a better way to achieve this functionality? We need this in order to move our panel from CEP to UXP, as we provide controls for clip parameters, along with the slider/drag functionality, and creating tens of undo steps is bad UX. It was possible in ExtendScript using qe.project.undoStackIndex
and qe.project.undo
.