Notifications
Clear all

[Closed] impossible to script in python?

Hello there!

I always wanted to script in python so I updated my 3ds max 2014 with the extension but it seems not to work. I typed something simple in the maxscript listener to be sure that the extension had been installed correctly:

>>> 1 + 1

– syntaxe error: >, wanted <factor>
– in line: >>

?? So it’s not working?
Do you have a good link to start scripting in python with 3ds max? It seems like the official manual hasnt been made for python scripting yet

thanks!!

8 Replies
 lo1

What makes you think >>> will work in the MAXScript listener?

The Python 3dsmax SDK docs are online since the extension came out: http://docs.autodesk.com/3DSMAX/16/ENU/3ds-Max-Python-API-Documentation/index.html

The documentation has been updated a lot since initial release, which is very good!

Also the sample scripts for python are installed here:

C:\Program Files\Autodesk\3ds Max 2014\scripts\Python\

the qs is:why it is such ugly when i run python from MXS editor? why it is not like xsi and maya where it is easy to open python tab and work ? i really hated the way it is in max ,life in maya is much more easier for me regarding python scripting

Use whatever editor you want , then use the function to launch the python scripts from maxscript by pointing to the py file.

python.ExecuteFile "file.py"

not that hard now is it?

If it’s so much better in maya then use that.

stigatle you seem to be fanatic for max (: i know that way already and btw u still can do that in maya , the point is : when u do this and execute file and have an error it s bit harder to trace and most importantly you lose the color coding features which would save alot of time regarding error tracing and typos ,and of course im using it in maya recently although most of my experience is 3dsmax ,that s why i thought that max deserves better !

thanks a lot guys! that really helps!

Any good tutorial available to script in python in 3ds max yet? Or is it too soon?

thanks again!

well, fanatic or not, been using it for 14 years and last 8 years it’s been my daily job, so I know my way around.

Also –
remember that it just got released, and only for subscription customers, so improvements will be added for sure, most likely in next release of max.
So personally I think complaining already is just… well… especially dragging maya into the discussion, since it has nothing to do with the current topic.

🙁 well im sorry ,but dragging maya in the topic was not strange as both are autodesk products even the developers are not the same ,introducing python inside max doesnt mean reinventing wheel on the contrary the expectations were high and even though let me drag maya again in the conversation :first appearance of python inside maya was nt like that .
i just wanted to clarify my point of view but i wish that max be much better as i invested many years -and still doing- learning and using it .
N.B neat way of protecting scripts code …liked it when i passed by your site