Notifications
Clear all

[Closed] Netrender callbacks

Hi! I’m trying to install #progress callback to netrender interface:

batchManager = NetRender.GetManager()
batchManager.connect #automatic “255.255.255.0”

–then call setcallback method

batchManager.setcallback #Progress somefunction

after that, if you call this – batchManager.getcallback #Progress – just to check – it returns undefined!

And when I register some real function with setcallback function it doesn’t work, it’s not calling that function not during submitting nor in any other operation with backburner.

Does that function work at all? Or should I consider some complicated variable scopes or something like that?

Thank you!

2 Replies

The trailing 0’s gave me a lot of headaches. I couldn’t find a solution through mxs. There is no function to remove them. I’ve also tried to add postrender callbacks but they didn’t wanted to work over the network…
The solution was to have another machine run a script every few minutes and check the folders for new renders and rename them. I would guess that it would be your best bet too…

This was happening in max7. I haven’t tried in 8 with the new scripts thing in the render dialog. That might work now.

Hope this helps!
Anton

Yeah, I was hoping there was a simpler way, but I figured I’d have to make something along those lines in the meantime. Like you had suggested, I just made a script that polls the output directory’s contents every so often and when it finds what it wants it runs the compositing fn. I guess whether it’s ugly or not, it works.