headskda.blogg.se

Maya 2022.1
Maya 2022.1











Set MAYA_PYTHON_VERSION=2 and launch Maya from a script file.Set MAYA_PYTHON_VERSION=2 in a command window and then launch Maya from that same terminal.Set MAYA_PYTHON_VERSION=2 as a system environment variable so that Maya 2022 picks it up no matter how you launch Maya.The other way is to set the MAYA_PYTHON_VERSION environment variable. OPTION 2: Set the MAYA_PYTHON_VERSION environment variable Now, when you launch Maya, you should get Python 2. At the very end of the Target field leave a space after the quotation mark and add -pythonver 2.On the Shortcut tab, scroll the Target field all the way to the right.Right-click on your Maya 2022 shortcut and click Properties.If that's too much and you're on Windows, you can make it a bit easier on yourself by editing you Maya 2022 shortcut to do the same.

maya 2022.1

It should look like this: maya.exe -pythonver 2 You'll need to launch Maya from the commandline or create a batch or script file to include the flag. OPTION 1: Use the -pythonver flagĪutodesk included a new -pythonver flag that you can use to launch with Python 2. Maya 2022 for macOS only includes Python 3. These instructions only work for Windows and Linux since Maya 2022 for those operating systems includes Python 2 and Python 3. If you're not quite ready to port your code and want to start trying out Maya 2022 without having to worry about Python 3, I thought this post might help you out. I've written a guide for auto-converting your Maya Python 2 code to Python 3 with considerations for cross-compatibility between the two versions. I highly recommend starting to look at moving to Python 3. Here I highlight and walk you through how to launch Maya 2022 with Python 2 instead.

maya 2022.1 maya 2022.1

While I'm excited and gladly welcome Python 3 for Maya, I know not everyone may be ready for it.













Maya 2022.1