Page 1 of 1

API: Undo Blocks Functions

PostPosted: Mon Jan 24, 2022 8:18 am
by X-Raym
Hi,

Currently (v17.4), DaVinci Resolve scripts add undo points at any Set function call (and surely other functions).

This is not very handy : if I set color of 150 clips via scripts, I will have 150 undo points in undo history, so getting back to previous state will be very long.

In REAPER API, users can define their own undo block like this

Code: Select all
UndoBlock_Beging()
...
code
...
UndoBlock_End()


This allows to have only one (or at least, a controlled amount) of undo block left by running a script. allowing scripts to be considered as single action, without spamming undo history.

This will be a very welcome addition to scripting and make it less basic IMHO, more controlled.

Thx for listening!

Re: FR (API): Undo Blocks Functions

PostPosted: Mon Jan 24, 2022 12:19 pm
by roger.magnusson
In addition, it would also be helpful if we could disable Resolve UI updates in the same way. The way it works now the UI makes scripts much slower than necessary.

Re: FR (API): Undo Blocks Functions

PostPosted: Mon Jan 24, 2022 12:22 pm
by X-Raym
@roger.magnusson
Indeed,
in REAPER you can do PreventUIRefresh function and scripts are hundreds of magnitude faster.

For resolve, coloring tons of items also takes a lot of time because of UI refreshing.

Though this might need a dedicated thread... I'm on it.

Re: FR (API): Undo Blocks Functions

PostPosted: Tue Feb 08, 2022 8:25 am
by Peter Chamberlain
Raymond, this is the feature request sub forum.. please don't put FR at the head of every post... to me it looks like your are shouting for attention with the all caps.

Re: FR (API): Undo Blocks Functions

PostPosted: Sun Apr 07, 2024 12:42 pm
by movalex
Peter Chamberlain wrote:...it looks like your are shouting for attention with the all caps.

Well, frankly this is the type of feature request that literally screams to be implemented. There's also a post supported by multiple artists, about proper Undo stack implementation in Resolve, like the one currently existing in Fusion: viewtopic.php?f=33&t=177994

With more and more scripting API features added to Resolve, this is really odd that a proper Undo stack is still not being developed. I.e. if the script adds 1000 clips to existing 2000, in order to delete those we need to click undo 1000 times.

It would be great to hear any news on this matter.

Re: FR (API): Undo Blocks Functions

PostPosted: Sat Aug 24, 2024 7:06 pm
by Joe Shapiro
Peter Chamberlain wrote:Raymond, this is the feature request sub forum.. please don't put FR at the head of every post... to me it looks like your are shouting for attention with the all caps.

Peter: The handy thing about FR is when you do a search in the top-level forum the feature requests and regular posts are all mixed in - so it can be helpful to see clearly which is which.