[Closed] Python in Max 2015?
Hello friends, somebody can help me?
I am reading the documentation of python in max and i am using the 2015 version.
Do i have to install something to max 2015 for uses python?
I am trying to write the code that appears in documentation, but it does not works.
Code:
import MaxPlus
Also no one .py exemple file opens in the maxscript editor. (Opens but do not works).
Thank you for attention!
Joao
Sadly the current (3dsmax 2015) build-in implementation of Python is not as good as we all hoped. Python is already pre-installed with 3dsmax 2015 (with PySide for GUI now)
But you can’t run real Python code from the maxscript listener.
You CAN do something like this though:
python.Execute "print 'hello'"
But for real Python scripts you’d have to save the file as .py somewhere on your harddrive (for example as Test.py on C:) and then run:
python.ExecuteFile "C:\Test.py"
Also please read:
[ http://docs.autodesk.com/3DSMAX/16/ENU/3ds-Max-Python-API-Documentation/index.html ](3ds Max Python API Documentation)
The build-in Python right now is meh … you still have to write most of your code in maxscript and wrap Python around it for the external tasks.
For example you can’t import libraries like in Blur’s Py3dsMax (sadly not available for 2015) and many other little annoyances (No parenting to the main Max window :banghead: )
So if you’re using 2015 … bad luck. It will eventually be implemented correctly (it also took Maya some years to become solid) but right now it’s limited.
If you can switch to 2014 feel free to use Py3dsMax which is much more mature and ready for production (but 3rd party)
At least that’s what I found out during the last days, trying to get Python up and running in 3dsMax 2015 – if someone else has more info, please share.