start 3dsmax with Virtual Environment

start 3dsmax with Virtual Environment

elpie89
Advocate Advocate
687 Views
1 Reply
Message 1 of 2

start 3dsmax with Virtual Environment

elpie89
Advocate
Advocate

following this simple documentation I'm not able to start 3dsmax with my venv

3ds Max 2022 Developer Help | Virtual Environments and 3ds Max Python | Autodesk

 

The venv is installed correctly and I'm able to activate it

when I launch 3ds max unfortunately it is still opened with the default python version 

Any idea?

688 Views
1 Reply
Reply (1)
Message 2 of 2

MartinBeh
Advisor
Advisor

Seems to work here...

C:\Program Files\Autodesk\3ds Max 2023\Python>python.exe -m venv c:\tmp\3dspyenv

C:\Program Files\Autodesk\3ds Max 2023\Python>c:\tmp\3dspyenv\Scripts\activate.bat

(3dspyenv) C:\Program Files\Autodesk\3ds Max 2023\Python>cd ..

(3dspyenv) C:\Program Files\Autodesk\3ds Max 2023>3dsmax.exe

and inside of 3ds Max:

>>> import os
>>> os.environ.get('VIRTUAL_ENV')
'c:\\tmp\\3dspyenv'

 

Martin B   EESignature
→ please 'Like' posts that are helpful; if a post answers your question please click the "Accept Solution" button.
0 Likes