Scripted Undo Stack Control for Media-Edit-Color Pages

  • Author
  • Message
Offline
User avatar

Andrew Hazelden

  • Posts: 610
  • Joined: Sat Dec 06, 2014 12:10 pm
  • Location: West Dover, Nova Scotia, Canada

Scripted Undo Stack Control for Media-Edit-Color Pages

PostWed Mar 22, 2023 12:56 pm

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.
Reactor.lua:933: attempt to index global 'ui' (a nil value)
Offline
User avatar

Jacob Danell

  • Posts: 361
  • Joined: Tue Aug 28, 2012 2:25 pm
  • Location: Sweden

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

PostWed Mar 22, 2023 1:30 pm

Yeah this would be great to have now when scripts becomes bigger and bigger!
Big 1+!

Windows 10, Fusion 19.x
AMD Ryzen 9 5950X 16-Core Processor 3.40 GHz
Nvidia GeForce RTX 3090 Ti
128 GB ram
Offline

RoseAllenM

  • Posts: 1
  • Joined: Wed Mar 22, 2023 1:38 pm
  • Real Name: Allen Rose

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

PostWed Mar 22, 2023 1:40 pm

This would be really helpful for our custom pipeline integrations.
Offline

FredStork

  • Posts: 30
  • Joined: Tue Oct 03, 2017 11:16 am

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

PostWed Mar 22, 2023 1:40 pm

+1
This is really needed!
Offline

Aurore de Blois

  • Posts: 262
  • Joined: Sun Feb 21, 2016 2:06 pm

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

PostWed Mar 22, 2023 1:52 pm

+1 on this, definitely needed.
Offline
User avatar

GregAusina

  • Posts: 194
  • Joined: Thu Aug 23, 2012 7:30 pm
  • Location: Paris - France

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

PostWed Mar 22, 2023 2:02 pm

+1 on this too.
Grégoire AUSINA / Gisèle productions
Davinci 19 on Windows 10 / latest Nvidia studio driver / Dual Xeon E-2650v4 / supermicro X10DRG-Q / 128 Go RAM / GUI GTX 1070 / Cuda GTX 3090 - FSI CM250 - Tangent Elements - Accusys A12S3-p+
Offline
User avatar

Roei T

  • Posts: 27
  • Joined: Mon Apr 26, 2021 7:24 pm
  • Location: Tel Aviv
  • Real Name: Roei Tzoref

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

PostWed Mar 22, 2023 2:04 pm

+1 Yes Please.
Offline

movalex

  • Posts: 120
  • Joined: Wed Sep 27, 2017 2:35 pm
  • Real Name: Alexey Bogomolov

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

PostWed Mar 22, 2023 2:22 pm

+1 here for the Undo stack for Resolve to be implemented.
Offline

Zakato360

  • Posts: 3
  • Joined: Mon Aug 30, 2021 8:33 pm
  • Real Name: Antonio V. Garcia-Serrano

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

PostWed Mar 22, 2023 2:29 pm

This sounds great.

+1 please
Offline

David Coiffier

  • Posts: 19
  • Joined: Tue Nov 03, 2015 3:48 pm

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

PostWed Mar 22, 2023 2:38 pm

+1 for me!!

That would be a massive feature!!

Thank you Andrew!!
Offline
User avatar

hughred22

  • Posts: 10
  • Joined: Tue Feb 18, 2020 3:31 pm
  • Location: Los Angeles
  • Real Name: Xiaoyu Ho

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

PostWed Mar 22, 2023 4:30 pm

+1 Please! We need this and thank you Andrew for doing it!
Offline

We are VR Music

  • Posts: 1
  • Joined: Wed Mar 22, 2023 4:43 pm
  • Real Name: Björn Sondermann

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

PostWed Mar 22, 2023 4:47 pm

+1 for us please! This is a very important feature! Thank you!
Offline
User avatar

Igor Riđanović

  • Posts: 1656
  • Joined: Thu Jul 02, 2015 5:11 am
  • Location: Los Angeles, Calif.

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

PostWed Mar 22, 2023 4:54 pm

+1.
www.metafide.com - DaVinci Resolve™ Apps
Offline

avclubvids

  • Posts: 366
  • Joined: Mon Sep 17, 2018 6:06 am
  • Location: Los Angeles
  • Real Name: Andrew Cochrane

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

PostWed Mar 22, 2023 6:44 pm

pluuuussssss Onnneeee :)
Offline

Goupil

  • Posts: 8
  • Joined: Wed Oct 27, 2021 2:41 pm
  • Real Name: Mathieu Reygaerts

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

PostWed Mar 22, 2023 9:24 pm

resolve:StartUndo("Adding my vote")
counter += 1
resolve:EndUndo(true)
Offline

Kel Philm

  • Posts: 649
  • Joined: Sat Nov 19, 2016 6:21 am

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

PostThu Mar 23, 2023 12:19 am

Ohhh, this would be handy! +1
Offline
User avatar

Roy Nieterau

  • Posts: 76
  • Joined: Wed May 20, 2015 2:02 pm
  • Location: Utrecht, The Netherlands

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

PostThu Mar 23, 2023 9:34 am

This should be there. +1
Offline
User avatar

Emilio Sapia

  • Posts: 233
  • Joined: Thu Apr 16, 2020 9:43 am
  • Real Name: Emilio Sapia

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

PostThu Mar 23, 2023 9:39 am

+1 for me. Would really love to have this one. Could be SUPER useful!
Offline

joergengeerds

  • Posts: 78
  • Joined: Mon May 27, 2019 11:24 pm
  • Real Name: Joergen Geerds

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

PostFri Mar 24, 2023 11:05 pm

+1 from me as well
Offline

Brad Thompson

  • Posts: 25
  • Joined: Mon Jan 05, 2015 5:14 pm

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

PostWed Mar 29, 2023 6:53 pm

+1!!!
Offline
User avatar

ScottLynch

  • Posts: 1
  • Joined: Wed Mar 29, 2023 9:22 pm
  • Real Name: Scott Lynch

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

PostWed Mar 29, 2023 9:23 pm

+1 please, thanks!
Offline
User avatar

Miltos Pilalitos

  • Posts: 720
  • Joined: Wed Nov 12, 2014 12:42 am
  • Location: Athens, Greece

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

PostFri Mar 31, 2023 12:39 am

Make this happen! +1
Windows 10 x64 • Threadripper 1950x • 64GB RAM • RTX 4090 24GB • Latest Nvidia drivers
Fusioneer since Fu4.0 • Resolver since v9
Offline
User avatar

Dunn Lewis

  • Posts: 4
  • Joined: Tue Dec 02, 2014 10:23 pm
  • Location: Hamburg, Germany

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

PostSat Apr 01, 2023 12:04 pm

+1 please, Thanks!
Offline

philipbowser

  • Posts: 400
  • Joined: Tue Oct 14, 2014 11:53 pm

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

PostMon May 15, 2023 5:33 pm

+1
Offline

Christoph Schmid

  • Posts: 866
  • Joined: Thu Sep 26, 2019 10:15 am
  • Real Name: Christoph Schmid

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

PostWed Oct 25, 2023 11:12 am

+1

Davinci Resolve Studio 20.0 Build 49
Windows 10 Pro 22H2
Davinci Resolve Studio 19.1.4 Build 11
Linux Ubuntu Studio 24.04 (Rocky 8.6 Container)
Offline

mpolis

  • Posts: 7
  • Joined: Wed Jan 25, 2023 7:35 am
  • Location: Hamburg, Germany
  • Real Name: Maris Polis

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

PostFri Feb 28, 2025 12:05 pm

Sorry for the revive but we still need this!

Return to DaVinci Resolve Feature Requests

Who is online

Users browsing this forum: Darthnater and 44 guests