Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

3dsmaxbatch.exe returns -130 (Max 2024.2)

3dsmaxbatch.exe returns -130 (Max 2024.2)

rasmus_bonnedal27X4Z
Community Visitor Community Visitor
58 Views
0 Replies
Message 1 of 1

3dsmaxbatch.exe returns -130 (Max 2024.2)

rasmus_bonnedal27X4Z
Community Visitor
Community Visitor

I'd like to run a python script with 3dsmaxbatch.exe and find out it's fail success status with the exit code of 3dsmaxbatch.exe. When exitCode != 0 I get the correct exit code from 3dsmaxbatch.exe but when exitCode == 0 3dsmaxbatch.exe returns -130.

How can I make 3dsmaxbatch.exe return 0 on success?

My script:

from pymxs import runtime as rt
rt.quitMax(exitCode=0)


Commandline:

"c:\Program Files\Autodesk\3ds Max 2024\3dsmaxbatch.exe" maxbatchtest.py


Log:

2025-08-19 18:05:51;  Specified option script: maxbatchtest.py
2025-08-19 18:05:51;  Defaulted option dm: 0
2025-08-19 18:05:51;  Defaulted option li: 0
2025-08-19 18:05:51;  3ds Max Install Location: c:\Program Files\Autodesk\3ds Max 2024\
2025-08-19 18:05:51;  3ds Max Executable: 3dsmax.exe
2025-08-19 18:05:51;  Secure Mode: 'OFF'
2025-08-19 18:05:51;  Dialog Monitor: Off
2025-08-19 18:05:51;  Script command: " -mxs "(python.ExecuteFile @\"D:\WORK\maxbatchtest.py\")""
2025-08-19 18:05:53;  Product version: 3ds Max 2024.2 Update (26.2.0.22013)
2025-08-19 18:05:53;  Data collection and use is 'ON'. Change your participation anytime in the Help menu of 3ds Max.
2025-08-19 18:06:08;  Initializing Python version: 3.10.8
2025-08-19 18:06:13;  ALC Security Tool 1.3 enabled.
2025-08-19 18:06:13;  ALC2 Security Tool 1.3 enabled.
2025-08-19 18:06:14;  PhysXPluginMfx Security Tool 1.3 enabled.
2025-08-19 18:06:14;  PhysXPluginMfx2 Security Tool 1.1 enabled.
2025-08-19 18:06:14;  CRP Security Tool 1.1 enabled.
2025-08-19 18:06:14;  ADSL Security Tool 1.1 enabled.
2025-08-19 18:06:14;  MSCPROP Security Tool 1.0 enabled.
2025-08-19 18:06:48;  <string>:8: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
2025-08-19 18:06:54;  Task Completed with Error(s) - see above
2025-08-19 18:06:54;  3ds Max Shutting Down
2025-08-19 18:06:57;  3ds Max Exit Code = 0

>echo %errorlevel%
-130



0 Likes
59 Views
0 Replies
Replies (0)