Maya Developer Kit
Download: https: //apps.exchange.autodesk.com/MAYA/en/Home/Index
Installation and Setup: http:? //Www.autodesk.com/maya-help-2018-enu/ contextId = BUILD_ENVIRONMENT
Maya Developer Kit download, unzip copy the files in the folder devkitBase to C: \ Program Files \ Autodesk \ maya2018.
The final folder structure is as follows:
-
- C:\Program Files\Autodesk\maya2018\devkit
- C:\Program Files\Autodesk\maya2018\include
- C:\Program Files\Autodesk\maya2018\mkspecs
- C:\Program Files\Autodesk\maya2018\bin
Developer Kit in devkitBase \ devkit \ plug-ins have some sample plug-ins . In devkitBase \ devkit \ applications, comprising a plurality of Maya API applications.
NOTE: To build your custom plug-ins, you can find the C ++ API header files and libraries in the following file Maya installation folder.
- Header files: ..\include\maya
- Libraries: ..\lib
pycharm association maya
1, pycharm provided maya python environment setup code autocomplete
2, the expansion pack to add, delete a default package, add devkit path.
3, code completion completion.
4, download mayaCharm
5, restart pycharm, then there will be mayaCharm in the Settings-Tools. Then copy the code.
6, create a text paste this code, change the text called userSetup.py, put my documents maya corresponding version of the scripts folder D: \ Documents \ maya \ 2018 \ scripts (stored according to the settings in your computer) .
7, see the shortcuts. maya select execution Alt + S, perform text Alt + A.
8, in PyCharm in writing code, Alt + A executed. maya will execute this command, and then create a cube.
import maya.cmds as cmds
cmds.polyCube()