State:New|TargetRelease:No Target|icon_bug|icon_modo|database:public|Resolution:Fixed|BugID:494734|
Problem summary
lx.result and lx.excResult does not work as expected.
Customer reported version
modo.15.0v1
Customer reported platform
windows10
Steps to reproduce
1) Open Modo and select Layout > Palettes > Scripting.
2) Run the following script:
try: # Try running a render, then quickly abort the operation.
lx.eval("render")
except RuntimeError as e:
# Reading the Commands log, and you'll see the command was aborted.
result = lx.excResult(e)
# But getting the result code from the exception, and it's always lx.result.FAILED
assert result == lx.result.ABORT, "{} does not match the result code for lx.result.ABORT".format(result)
3) When the render starts, quickly abort the operation and notice the results. We're sorry to hear that
Please tell us why