Maya Environment
Cam
opt + LMB - rotate
opt + RMB - scale
opt + MMB - move
Viewport
frame geometry - H
frame selected object - o
Show Attribute Editor - Ctrl + A
Settings
preferences -
Project -
Render -
Essential
Commander -
- 1.Install Python, Visual Studio Code
- 2.In VSC, install MEL - Maya Embedded Language, Maya-code, Maya-Py, Maya Code
- 3.
- 4.Modify your JSON
- 5.In Maya > Script Editor > Open ports by entering these code
import maya.cmds as cmds
# Open new ports
cmds.commandPort(name=":7001", sourceType="mel", echoOutput=True)
cmds.commandPort(name=":7002", sourceType="python", echoOutput=True)
To enable ports at startup create a file named userSetup.mel in the following folder:
Windows: <drive>:\Documents and Settings\<username>\My Documents\maya\<Version>\scripts
Mac OS X: ~/Library/Preferences/Autodesk/maya/<version>/scripts.
Linux: ~/maya/<version>/scripts.
(where ~ is your home folder)
In the userSetup.mel file add the following
commandPort -name "localhost:7001" -sourceType "mel" -echoOutput;
commandPort -name "localhost:7002" -sourceType "python" -echoOutput;
{
"python.pythonPath": "python",
"python.autoComplete.extraPaths": [ "C:/Program Files/Autodesk/Maya2019/devkit/other/pymel/extras/completion/py" ],
}
/Applications/Autodesk/maya2020/devkit
- open Script Editor to see echo MEL command
- go to Help > Python reference
- flags: ch,o,w,g,d,name
- DAG - direct acyclic graphic: transform node>shape node > data structures
- Window > Setting / Preferences > Preferences > Selection > Track Selection Order
Hotkeys
- Cmd T - new python
keyRotation
aimAtFirst
randomInstances
randomCubes.py
import maya.cmds as cmds
def keyFullRotation(pObjectName,pStartTime, pEndTime, pTargetAttribute):