AWS Thinkbox Discussion Forums

failing a render from a c++ plugin in max?

Is there a way to fail a render from a c++ max plugin?

Printing to the script window maybe? Or would i need to execute a maxscript function with deadlineutils? Its a render element, so im not sure how/when those get evaluated if at all (during rendering)

cheers
l

Calling deadlineutils.failrender using executemaxstring didnt seem to work…

So for now im logging a message to max.log, and then calling abort() to crash max. Not very elegant, but i guess it works. If there is an official way of doing this, i would rather use that.

The deadlineutils.failrender call should work, although I don’t think we’ve ever tested it in the context that you are using it (via executemaxstring). That being said, all it does is cause an exception to be thrown, which I think would normally crash max, so the way you’re doing it now is pretty much the same thing.

Cheers,
Ryan

Ok cool, makes me feel better a bit :slight_smile:

It could be a threading issue with the executemaxscript call…

Privacy | Site terms | Cookie preferences