What's New in the 3ds Max 2019 Python API

3ds Max 2019 Update 1

Some MAXScript objects (such as scene nodes) can now be used as Python dictionary keys. See MAXScript Values in pymxs for more information.

3ds Max 2019

This release of 3ds Max introduces some changes and improvements to the Max Python API.

Python version

The Python version used by 3ds Max is still 2.7.12. This has not changed in this release.

PySide Version

The included PySide2 version is upgraded from 5.6.2 to 5.6.3.

By-Reference Parameter Handling

The pymxs module now supports functions that take by-reference parameters, with the new pymxs.mxsreference() function. In previous versions, these parameters were not handled.

For example:

rt = pymxs.runtime
s = rt.sphere()
myResultArray = rt.Array()
rt.maxOps.cloneNodes(rt.mySphere2,  cloneType=rt.Name("reference"), newNodes=pymxs.mxsreference(myResultArray))
print myResultArray