On Tue, Jul 14, 2009 at 15:48, Chad Dombrova<[email protected]> wrote: > am i right in my memory that there is no way to get an api callback for > render start/done for any renderer other than maya software?
That's correct, however in the 'Render Options' section of the 'Render Settings' window you can set up MEL commands to be executed on various events, such as the start and end of rendering of each frame. You can also set the values directly onto the 'defaultRenderGlobals' node, if you prefer. Those are supposed to work for all supported renderers. I'm not sure if it's still true, but it used to be the case that those command would only execute if the render was initiated through the GUI or using Maya's 'render' command. If, for example, someone started a mental ray render by directly executing the 'Mayatomr' command, or running a script which did so, then the Render Options scripts would not execute. It's been a while since I looked at that, though, so give it a try: it may have been fixed. If it isn't then let me know and I'll write up something about how you can use the 'MayatomrJob' command to set up callback scripts which mental ray will honour regardless of how it is invoked. It all gets a little complicated and I have a number of long-outstanding bug reports to have it cleaned up. -- -deane --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
