We recommend using VSCode as the new code editor when following the course.
Starting with Maya2022, the DevKit no longer ships with the "other" folder that contained the completion file. Use the MayaCode and MayaPy extensions for VSCode for easy autocomplete setup. Be sure to create the userSetup.py script to configure the port forwarding to Maya.
Refer to the guide compiled on the process here
The refactoring feature used in lesson 69 is also supported in VSCode.
-
Print
has now been changed to a function, so all calls toprint
will need to have the parameters surrounded by parentheses - i.e.print("hello world")
orprint(help(...))
-
Reload
is now located in theimportlib
library. To use it, include the line
import importlib.reload as reload
in the Maya python editor before using the
reload(...)
when testing the course scripts.
* To elevate your dev experience we recommend including this line in the **userSetup.py** script referred to earlier.
Lighting Manager -
In lesson 62, basestring
is no longer supported in python3. Instead replace it with str
.
Similary, there are longer two forms integers (int and long) in python3. So in lesson 66, when casting the reference for the main window, instead of long(win)
use int(win)
.
For more changes between python2 and python3, check out this reference page.
Aside from icon changes, there is one main update to Maya that is noteworthy for this course. The default renderer has been changed from Maya Software to Arnold. For the Controller Library project, make sure to change the default renderer to Maya Software like it is in the tutorials.
The setting is the second dropdown in the Render Settings window.