I am trying to run this example. : https://help.autodesk.com/view/MAXDEV/2022/ENU/?guid=MAXDEV_Python_tutorials_creating_the_dialog_htm...
Everything works fine until "Wait, I see problems with my import statements" section.
Even if I follow those steps, I am still seeing import error, like this:
Is this normal case? I tried to change "python interpreter" to the max's python with this way:
and then my problem disappears but this time vs code can't detect PySide2 module:
plus pyside's "autocomplete" tool is gone. I can't see pymsx's intellisense either way.
I added this code in settings.json but example using 2021's path. Should I install max 2021?
"python.pythonPath": "C:\\Program Files\\Autodesk\\3ds Max 2022\\Python37\\python.exe",
"python.autoComplete.extraPaths": ["C:\\Program Files\\Autodesk\\3ds Max 2022\\Python37"]
at the end I want to see this in vs code as well:
Solved! Go to Solution.
Solved by 458569. Go to Solution.
Hello Mustafa,
Thanks a lot for reporting this. I juste tried it on my side and to make it work I had to set it this way:
"python.autoComplete.extraPaths": ["C:\\Program Files\\Autodesk\\3ds Max 2022\\Python37\\Lib\\site-packages"]
Does this solve the issue for you? (if it does I will make sure the doc is updated accordingly).
Thanks again
Hugo
Import error disappeared but intellisense still doesn't appear. Is it normal for it not to appear?
my settings.json:
my interpreter:
Hello Mustafa,
You should see a few things like animate (like... pymxs.an should suggest autocompletion).
This is the only thing that will currently work.
So it is "normal" (I should probably use the word "expected") that pymxs.ru does not suggest autocomplete to "runtime".
Can't find what you're looking for? Ask the community or share your knowledge.