Page 1 of 1

Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 12:56 pm
by Andrew Hazelden
Fusion Studio and the Fusion page have control over their undo stack when running scripted tasks in Lua and Python that modify the composite. This undo stack event history "grouping" functionality would be very handy to have in the other Resolve pages, too.

Syntax Example
It would be great to have fine-grained undo stack control in Resolve with a pair of functions like:
Code: Select all
resolve:StartUndo("Apply Grade")
...
resolve:EndUndo(true)


Existing BMD Reference Docs
The "Fusion 8 Script Manual.pdf" document on page 92 lists the existing "Composition.StartUndo()" function and page 70 describes the existing "Composition.EndUndo()" function:

Code: Select all
Composition.StartUndo(name) Start an undo event.

The StartUndo() function is always paired with an EndUndo() function. Any changes made to the composition by the lines of script between StartUndo() and EndUndo() are stored as a single Undo event.

Changes captured in the undo event can be undone from the GUI using CTRL-Z, or the Edit menu. They can also be undone from script, by calling the Undo function.

Should be used sparingly, as the user (or script) will have no way to undo the preceding commands.

name specifies the name displayed in the Edit/Undo menu of the Fusion GUI a string containing the complete path and name of the composition to be saved.

Actual changes must be made to the composition (forcing a “dirty” event) before the undo will be added to the stack.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 1:30 pm
by Jacob Danell
Yeah this would be great to have now when scripts becomes bigger and bigger!
Big 1+!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 1:40 pm
by RoseAllenM
This would be really helpful for our custom pipeline integrations.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 1:40 pm
by FredStork
+1
This is really needed!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 1:52 pm
by Aurore de Blois
+1 on this, definitely needed.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 2:02 pm
by GregAusina
+1 on this too.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 2:04 pm
by Roei T
+1 Yes Please.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 2:22 pm
by movalex
+1 here for the Undo stack for Resolve to be implemented.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 2:29 pm
by Zakato360
This sounds great.

+1 please

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 2:38 pm
by David Coiffier
+1 for me!!

That would be a massive feature!!

Thank you Andrew!!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 4:30 pm
by hughred22
+1 Please! We need this and thank you Andrew for doing it!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 4:47 pm
by We are VR Music
+1 for us please! This is a very important feature! Thank you!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 4:54 pm
by Igor Riđanović
+1.

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 6:44 pm
by avclubvids
pluuuussssss Onnneeee :)

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 22, 2023 9:24 pm
by Goupil
resolve:StartUndo("Adding my vote")
counter += 1
resolve:EndUndo(true)

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Thu Mar 23, 2023 12:19 am
by Kel Philm
Ohhh, this would be handy! +1

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Thu Mar 23, 2023 9:34 am
by Roy Nieterau
This should be there. +1

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Thu Mar 23, 2023 9:39 am
by Emilio Sapia
+1 for me. Would really love to have this one. Could be SUPER useful!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Fri Mar 24, 2023 11:05 pm
by joergengeerds
+1 from me as well

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 29, 2023 6:53 pm
by Brad Thompson
+1!!!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Mar 29, 2023 9:23 pm
by ScottLynch
+1 please, thanks!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Fri Mar 31, 2023 12:39 am
by Miltos Pilalitos
Make this happen! +1

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Sat Apr 01, 2023 12:04 pm
by Dunn Lewis
+1 please, Thanks!

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Mon May 15, 2023 5:33 pm
by philipbowser
+1

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Wed Oct 25, 2023 11:12 am
by Christoph Schmid
+1

Re: Scripted Undo Stack Control for Media-Edit-Color Pages

PostPosted: Fri Feb 28, 2025 12:05 pm
by mpolis
Sorry for the revive but we still need this!