Do you mean you are running them from a command via via "Render"? If so, a
failed render should return a non-zero exit status, which you would look
for.
The post callbacks don't seem to run on failure.


On Sat, Nov 30, 2013 at 6:36 PM, Vitali Crystal <[email protected]>wrote:

> Hello,
>
> I am kind of lost and I need your help. I know that I can do batch
> rendering through 'render' command and it will also allow me to run
> callbacks (such as after each frame is rendered). I can even import a
> python script and run that script as my callback. With that i have no
> problem.
>
> However: how can I detect when a frame, for example, fails to render and
> batch rendering stops? Is it detectable through a callback that runs after
> each frame is rendered? If not, how can I do it? I need it because if such
> an event occurs, I need to clean up the database, and mark all entries,
> each corresponding to a frame of the scene, as 'errored'. I can't do it
> unless I can detect an error through a python script. Can anyone help me? I
> have already spent hours searching online and have no clue where else to
> search. Is it even possible?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/2c3872a7-0f2c-46ce-83df-221b7c0073f4%40googlegroups.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3f6M%2B6wbZ0zZo-1X25GA7rmOt_%2BmNbC7J%2B0sLg2GH7dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to