Apr 2005
1 / 8
Apr 2005
Sep 2021

Hi

I'm working on several computers at a time and was wondering if theres any script that simply makes a "BEEP" or a sound when a single frame render finishes...This would help me a lot to work faster and stop walking around the office to check the renders progressions...

Does anybody heard about something like that?
Is it complicated to program it?
Could some mel master help me?

Thaks a lot

Arturo Chomyszyn

  • created

    Apr '05
  • last reply

    Sep '21
  • 7

    replies

  • 4.6k

    views

  • 4

    users

  • 2

    links

ummm? Beep beep beep. Wouldnt it be more prudent to send this data to your computer via the network to some program that visualises the progress?

Most dispatchers can do this you know.

Anyway it depends on you rsystem on windows you can simply echo ^G in a sytem command unfortunately i didnt get any way to copypaste a real control g character into mayas sytem command even after huge effort so i suggest you use this as a post render script.

system "start sndrec32 /play /close C:WINDOWSMediaNotify.wav";

or injecting it directly via mel

setAttr -type "string" defaultRenderGlobals.postRenderMel "system "start sndrec32 /play /close C:WINDOWSMediaNotify.wav";";

Note the wav can be anything you choose giving each machine a different tone would give you a nice harmonic! o r ebvene stepping trough a tune You can meke it so the window does not appear with vbscripting. But why go fishing further at the sea?

instead of:

or you can make a bat file called beep.bat wich contains echo ^G

Note dont type ^ and G but rether press controll and g. And you cant do this in notepad, making this a bit hard. you must copy the character form http://www.efn.org/~gjb/asciidec.html22http://www.efn.org/~gjb/asciidec.html2 here its the 007 one.

PS. if loosing focus or window is annoyin use

system "shell "start /min sndrec32 /play /close C:WINDOWSMediaNotify.wav"";

instead

Wow, thanks man!
i'll check that
good idea about diferent sounds!!!

Saludos
Arturo

hmmm that way you need at least headphones on every machine...

Another idea: If you got winXP ok 2k machines running: What about sending a net send message?

string $msg = "must calculate.. need more data.. ";
system ("net send MainMachine" + $msg);

Joojaa: That echo ^G is fun too!!

Interesting...

And what about the CPU Beep?. I mean the real and awfull mother board beep, is there a command for that, that would be perfect!

yes its the eccho control G (ascii character 7) buyt you need to do a bat file to do that since maya cant emit controll ge realy well anyway.

but you can paste it form a file and now so you end with

system "shell echo ";

should work but ist a bit impossible to say if it transfers over the forum correctly. (theres a asort of a communications barrier in place here.) Try and se.

NOTE: it only owrks if you copy paste the line as it contains a INVISIBLE CHARACTER! wich makes communicating thsi a bit hard!

Yes!
Working fine with .wav or with .bat, but doesn't work with Mray single frame, is it normal?

Thanks