I’m trying to make a small maxscript, preview render mode, which would automaticly loop all settings and change them to lower values for preview. However the problem occurs with DR. The script below works fine when rendering on single machine:
However, with DR the callback is called AFTER the scene is sent to slaves, so all slaves will render an empty sccene without the teapots, while my machine will render it with the teapots. Is there any callback that occurs BEFORE scene is sent to slaves?
I feel stupid answering my own question but it seems there is another reason why prerender cannot be used here, quote from maxscript reference:
In the prerender callback, you can’t change any of the render parameters (height, width, aliasing, etc) and affect the current render sessions
The easiest way around these problems I came up with is making seperate Render button and using “max quick render” which is practically the same as pressing Render button. This way I can do whatever I want before actually starting the rendering process.[/quote]