Notifications
Clear all

[Closed] Where could i find pymxs.py?

Ive been trying to set up vscode as my python IDE for 3ds max, and so far its been working great except for one thing. pymxs.py doesnt seem to exist, so it seems the module isnt loadable from outside 3ds Max.

Basically this means that I cant have intellisense autocomplete for any pymxs members, and pylint throws false errors for everything related to pymxs.
Does anyone have any idea how I could extract a pymxs.py so the interpreter/linter can read the members from it?

3 Replies

Hi Saippua, there is no pymxs.py. It’s a Python C module (_MaxPlus.pyd loaded by MaxPythonHost.gup) that is part of the 3ds Max python integration. Even if someone made the pymxs.py, it wouldn’t reflect all the stuff it can do, since it uses 3ds Max runtime information.

Cheers,

What does this mean for autocomplete in VSCode? Would it somehow be possible to load this python C module so that its usable by the python interpreter?

Im not sure if its relevant but while ive been working on setting this up, ive that the python interpreter that comes with max 2018 (3dsmaxpy.exe) wont work with intellisense/autocomplete in VSCode, but the Python3.5 interpreter i downloaded seperately does give autocomplete for MaxPlus.

MaxPlus does have python code (MaxPlus.py) so it’s easy for the editor to parse and give to some extend autocomplete. But you can’t load pymxs, because it’s only available when 3dsmax is running, even if you use the 3dsmaxpy.exe it won’t have access to the 3dsmax runtime information, isn’t running.