I have a preRender callback script that check for a few variables before render, is there a way to stop vray render if those conditions are not met? Looking through the vray maxscript documentation I can only find a method for IPR rendering but not regular non-interactive version.
Announcement
Collapse
No announcement yet.
Stopping render with maxscript
Collapse
X
-
Yeah I had similar needs a while back and couldnt find anything either (didnt want to go down the .NET rabit hole)
Ended up just calling a 5 second timer counting down and a message for the user to maually press the cancel (or escape) button before timer reach 0
Kind Regards,
Morne
-
The Max UI is locked during rendering, so any script wouldn't execute.
Could you be more specific as to the case you're facing? Are you writing a sanity checker?Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
Comment
-
Originally posted by ^Lele^ View PostThe Max UI is locked during rendering, so any script wouldn't execute.
Could you be more specific as to the case you're facing? Are you writing a sanity checker?
Comment
-
Originally posted by ILS View Posti'm not sure what to do.
What i could think of is one of two things:
a) The simplest solution is to run the sanity check independently. Provided it warns users (or even auto-fixes the issues), then starting a render could be avoided.
b) Similarly to the above, make your own render button which in actual fact first runs the sanity checker, and only if that is passed (or fixed) the render command is issued.
You'd have to instruct users to run your tools, rather than resort to the usual workflows, but if the little effort is worth it, you shouldn't find it difficult.
Notice this is also how Deadline works (or used to.): if its sanity checker finds issues, it allows the user to either rectify them (for the "yellow" ones) or warns the user to not start a render (for the "red" ones).
Provided the message to not start the render is clear, responsibility should then transfer to individual users in case someone decided to ignore it (speaking as a concerned T.D., eheh).Lele
Trouble Stirrer in RnD @ Chaos
----------------------
emanuele.lecchi@chaos.com
Disclaimer:
The views and opinions expressed here are my own and do not represent those of Chaos Group, unless otherwise stated.
Comment
Comment