PDA

View Full Version : Notify the "Manager" computer of a complete Net-Render.


RockinAkin
01-07-2004, 03:16 AM
Hi All,

I asked if there was a way to do this out-of-the-box with max, but it seems like it isn't possible... so I'm wondering if a little MaxScript can do the job.

I want there to be some kind of a notification given to the "Manager" computer whenever a "Server" computer finishes a network-render job.

There is a setting that will notify through email, but thats a bit over-complicated... This notification could be a little popup window on the Manager computer - with a little sound that plays or something.

Could anyone do this with MaxScript?
I dont think it would be too difficult...

Thanks.

LFShade
01-07-2004, 04:13 AM
There's probably a way to do it using 'net send' through doscommand. Would require the Messenger service to be running on the manager box. Perhaps I'll look into this when I get my network back up and running.


RH

oatz
01-12-2004, 02:17 AM
Something like this would work I think --
You'd have to run it from the computer the manager was running on. Or you could run netsend as suggested above.

clearlistener()
file = "C:\thePathoftheSoundFile"
--
--
--Initialize
m = netrender.getmanager()
m.connect #automatic "255.255.255.0"
--get queue control
if (m.QueryControl #wait) do
(
m.getcontrol()
)
--getservers
server = m.getservers()
--
--
--getjobs
m.setupdates false
job = m.getjobs()
m.setupdates true
--
--
--functions
fn notify =
(
if (m.QueryControl #wait) do
(
m.getcontrol()
)
for i=1 to job.count do
(
if job[i].timeFinished != undefined
(
shelllaunch file
)
)
)
m.setcallback #update notify

CGTalk Moderation
01-17-2006, 02:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.