Python Errors in 3dsmaxbatch only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
short version:
pymxs throws exceptions in 3dsmaxbatch but not in normal 3ds max mode
long version:
I need some help with a max issue
My script runs fine in both 3ds max, and 3dsmaxbatch.exe
but in the batch version it is a lot slower.
after running it in debug mode "-v 5 "
i noticed it prints a LOT of error messages, resulting in the script running a lot slower
this happens when doing normal stuff such as trying to access a material
import pymxs
rt = pymxs.runtime
for i in range(100):
standClass = rt.StandardMaterial
or
node = rt.getnodebyname("Box001")
for i in range(100):
nodeMat = node.material
doing this gives me the following error in maxbatch
but no errors at all in normal max
MAXScript Evaluate MXSWrapperBase Exception: -- Unknown property: "_referencedObject"
is there a away to disable these errors being send? they originate from pymxs so i assume its a autodesk bug