Anybody have success making the workstation beep when a render completes?
I tried the following script which works in Terminal/Python, but when I paste it in the post-render script (with type “Python”), I don't hear a beep.
import os; os.system(“echo ‘\a’”)
Beep when render completes?
3795 6 6- Geoffrey Plitt
- Member
- 14 posts
- Joined: Oct. 2015
- Offline
- sidenimjay
- Member
- 703 posts
- Joined:
- Offline
- Geoffrey Plitt
- Member
- 14 posts
- Joined: Oct. 2015
- Offline
- Guillaume
- Staff
- 478 posts
- Joined: April 2014
- Offline
On Linux, I use paplay through the command line to play sounds when running a makefile.
You can hook it up in a python os.system() call as well or to a batch render.
# Play a sound on success or error through the command line
alias ok=“( paplay /usr/share/sounds/KDE-Sys-App-Positive.ogg & )”
alias err=“( paplay /home/guillaume/sounds/sadtrombone.ogg & )”
alias okerr=“&& ok || err”
What's neat is you can use a shell command return value to play a different sound if the command failed.
So I can run ( given my ok,err,okerr aliases are defined)
make okerr
and Il get a chime sound on success or the sad trombone on error.
I do hear the sad trombone a lot during a day.
You can hook it up in a python os.system() call as well or to a batch render.
# Play a sound on success or error through the command line
alias ok=“( paplay /usr/share/sounds/KDE-Sys-App-Positive.ogg & )”
alias err=“( paplay /home/guillaume/sounds/sadtrombone.ogg & )”
alias okerr=“&& ok || err”
What's neat is you can use a shell command return value to play a different sound if the command failed.
So I can run ( given my ok,err,okerr aliases are defined)
make okerr
and Il get a chime sound on success or the sad trombone on error.
I do hear the sad trombone a lot during a day.
- keyframe
- Member
- 1533 posts
- Joined: July 2005
- Offline
- pelos
- Member
- 621 posts
- Joined: Aug. 2008
- Offline
- WhoDjini
- Member
- 94 posts
- Joined: Dec. 2008
- Offline
-
- Quick Links