- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi
I have written a python script that I want to execute with 3dsmax Batch.
Although there is no error message (not in the system log as well), it exits with code -130.
The 3dsmax help recommends to execute "quitMAX quiet:true exitCode:0" to override the exit code.
As I am using a python script, I execute
from pymxs import runtime as rt
rt.quitMax(exitCode=0, quiet=True) This command crashes the maxScript interpretor (system log).
So I wrote a .ms Maxscript wrapper that calls my python script.
And that one executes
quitMAX quiet:true exitCode:0
But this has no effect on the exit code as well.
The issue seems to be related to using a the python logging module to create a logger.
This logger connects to the default stream handler with logging.StreamHandler() and prints a message.
Just creating the logger object without printing anything does not cause 3dsmaxBatch to exit with code -130.
Solved! Go to Solution.