Skip to content

Instantly share code, notes, and snippets.

@monsieuroeuf
Last active March 29, 2021 05:17
Show Gist options
  • Save monsieuroeuf/d2a0953f5df4e07ca8141053db64c6eb to your computer and use it in GitHub Desktop.
Save monsieuroeuf/d2a0953f5df4e07ca8141053db64c6eb to your computer and use it in GitHub Desktop.
Make DaVinci Resolve play a sound when it's finished rendering
# demo code for youtube tutorial (https://youtu.be/9SrJ3mznVlY)
# note: tweaked for Python2 compatibility
# only works on a mac
# should be saved here:
# /Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Deliver
import os
# edit this variable so that it points to the sound you'd like to play
PATH_TO_SOUND = "~/macossounds/AIFF/Wild Eep.aiff"
# build the command
cmd = 'afplay "{}"'.format(PATH_TO_SOUND)
# run the command
os.system(cmd)
# uncomment the following lines if you want to experiment with creating a new file, too
# (no doubt you'll want to change the path to point somewhere else)
# another = 'touch ~/Dropbox/finished_rendering'
# os.system(another)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment