
Scripting is a great feature in DaVinci Resolve. With the exception of a few brave souls that have shared their scripts the forum isn't exactly overflowing with them so I thought I'd make a few contributions on the subject. These will mostly have some kind of GUI and are meant to be run from the Workspace > Scripts menu but where appropriate I will also provide bare-bones snippets that can be pasted directly to the console.
To put a script in the Scripts menu, place the script file here:
macOS
In Finder, press Shift+Command+G to open "Go to Folder" and paste the path to open it.
Current user: ~/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility
All users: /Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility
Windows
In File Explorer, paste the path in the address bar to open it.
Current user: %AppData%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility
All users: %ProgramData%\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Utility
Linux
Current user: ~/.local/share/DaVinciResolve/Fusion/Scripts/Utility
All users: /opt/resolve/Fusion/Scripts/Utility (or /home/resolve/Fusion/Scripts/Utility)
I have listed the "Utility" folder here which makes a script accessible in the root of the Scripts menu on all pages. You can also put the file in one of the page-specific subfolders to the Scripts folder. I have noticed on Windows it sometimes takes a while for the menu to update. Restart Resolve if you're impatient.
The scripts I make are for both the free and paid versions of DaVinci Resolve on macOS, Windows and Linux unless otherwise specified.
Downloads
These are direct links to all the scripts I have posted in this thread (forum post + download). They all use the MIT license, specified in each file.
Make your own?
You don't have to be a programmer to run the scripts I post here but if you would like to learn more you can find the Blackmagic Design scripting documentation for the DaVinci Resolve API here:
Help > Documentation > Developer
You'll find readme.txt in the Scripting folder. There's also relevant information for scripts in the Workflow Integrations folder, where the readme covers how to create GUIs for scripts under the UIManager Introduction header. For more information, check out the Building GUIs With Fusion's UI Manager thread and my own script, Class Browser.
I will be using the Lua programming language (Fusion/Resolve uses LuaJIT, a Just-In-Time compiler for Lua) because it's built into Resolve and works in both the Studio and free versions on all platforms.
Other links of interest
- The Lua 5.1 Reference Manual
- LuaJIT and specifically the LuaJIT Extensions
To put a script in the Scripts menu, place the script file here:
macOS
In Finder, press Shift+Command+G to open "Go to Folder" and paste the path to open it.
Current user: ~/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility
All users: /Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility
Windows
In File Explorer, paste the path in the address bar to open it.
Current user: %AppData%\Blackmagic Design\DaVinci Resolve\Support\Fusion\Scripts\Utility
All users: %ProgramData%\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Utility
Linux
Current user: ~/.local/share/DaVinciResolve/Fusion/Scripts/Utility
All users: /opt/resolve/Fusion/Scripts/Utility (or /home/resolve/Fusion/Scripts/Utility)
I have listed the "Utility" folder here which makes a script accessible in the root of the Scripts menu on all pages. You can also put the file in one of the page-specific subfolders to the Scripts folder. I have noticed on Windows it sometimes takes a while for the menu to update. Restart Resolve if you're impatient.
The scripts I make are for both the free and paid versions of DaVinci Resolve on macOS, Windows and Linux unless otherwise specified.
Downloads
These are direct links to all the scripts I have posted in this thread (forum post + download). They all use the MIT license, specified in each file.
- Timelines
- Stills
- Markers
- Media Pool
- Other
- Fuses
- Note that these require a different installation procedure, see this post.
- Number Formatter [Download]
Make your own?
You don't have to be a programmer to run the scripts I post here but if you would like to learn more you can find the Blackmagic Design scripting documentation for the DaVinci Resolve API here:
Help > Documentation > Developer
You'll find readme.txt in the Scripting folder. There's also relevant information for scripts in the Workflow Integrations folder, where the readme covers how to create GUIs for scripts under the UIManager Introduction header. For more information, check out the Building GUIs With Fusion's UI Manager thread and my own script, Class Browser.
I will be using the Lua programming language (Fusion/Resolve uses LuaJIT, a Just-In-Time compiler for Lua) because it's built into Resolve and works in both the Studio and free versions on all platforms.
Other links of interest
- The Lua 5.1 Reference Manual
- LuaJIT and specifically the LuaJIT Extensions
Last edited by roger.magnusson on Thu Mar 16, 2023 8:01 pm, edited 15 times in total.