- Posts: 1699
- Joined: Fri Nov 13, 2020 11:03 pm
- Warnings: 1
- Real Name: Maxwell Allington
Shrinivas Ramani wrote:Hi
Resolve 17 has the option for a post-render script (Render Settings > Advanced > Trigger Script at end of render job). You can queue up your render jobs, add a script to the last job in the queue and use that script to set your system to sleep/shutdown/spin-down drives, or even send an email notification so someone can push a button.
Please refer to the What's New in Resolve 17 document (starting page 349)
Regards
Shrinivas
So for people on Windows 10
(I'm sure there are other commands, I don't know, but this works for me) :
1) Create a LUA script with this code in it (just use the notepad) :
- Code: Select all
manager = resolve:GetProjectManager()
manager:SaveProject()
strProgram = '"C:\\Windows\\System32\\shutdown.exe" /s /t 00'
os.execute(strProgram)
2) Put the file in C:\ProgramData\Blackmagic Design\DaVinci Resolve\Fusion\Scripts\Deliver - and call it "Shutdown.lua" for example
The first two lines will make Resolve save your project, then it will shut down the computer directly.
/t 00 is the time before the shutting down process (in seconds). You can delay it by giving a duration in seconds.
You can find all the other options here : https://docs.microsoft.com/en-us/window ... s/shutdown
I don't know the commands for Linux or MacOS, but I'm sure it can be found very easily.
I'm sure there are tons of other possibilities, like playing an audio notification, etc. anything that can be triggered by a script.
PS.
Don't test it like I did, with all my applications opened and work not saved
- Attachments
-
- script2.jpg (15.07 KiB) Viewed 7464 times
-
- script.jpg (16.7 KiB) Viewed 7464 times
Last edited by Videoneth on Fri Apr 16, 2021 1:50 pm, edited 2 times in total.
Windows 10
19b
nVidia 3090 - 552.22
19b
nVidia 3090 - 552.22