I feel it's about time to share my custom Maya hotkeys because I've been using them everyday for the past 4+ years in every job I've been in, and they were gifted to me by a friend who gave them to me on my first day, on my first job.
They'll save you hours days of your life! Days i tell you.
# Show geo only (alt+1)
import maya.cmds as mc
currentPanel = mc.getPanel(withFocus = True)
getStatus = mc.modelEditor(currentPanel, q=True, cameras=True)
if getStatus == True:
mc.modelEditor(currentPanel, e=True, allObjects=False)
mc.modelEditor(currentPanel, e=True, polymeshes=True)
else:
mc.modelEditor(currentPanel, e=True, allObjects=True)
# Show joints only (alt+2)
import maya.cmds as mc
currentPanel = mc.getPanel(withFocus = True)
getStatus = mc.modelEditor(currentPanel, q=True, cameras=True)
if getStatus == True:
mc.modelEditor(currentPanel, e=True, allObjects=False)
mc.modelEditor(currentPanel, e=True, joints=True)
mc.modelEditor(currentPanel, e=True, handles=True)
else:
mc.modelEditor(currentPanel, e=True, allObjects=True)
#Show joints and geo only (alt+3)
import maya.cmds as mc
currentPanel = mc.getPanel(withFocus = True)
getStatus = mc.modelEditor(currentPanel, q=True, cameras=True)
if getStatus == True:
mc.modelEditor(currentPanel, e=True, allObjects=False)
mc.modelEditor(currentPanel, e=True, joints=True)
mc.modelEditor(currentPanel, e=True, polymeshes=True)
else:
mc.modelEditor(currentPanel, e=True, allObjects=True)
#Show curves and geo only (alt+4)
import maya.cmds as mc
currentPanel = mc.getPanel(withFocus = True)
getStatus = mc.modelEditor(currentPanel, q=True, cameras=True)
if getStatus == True:
mc.modelEditor(currentPanel, e=True, allObjects=False)
mc.modelEditor(currentPanel, e=True, nurbsCurves=True)
mc.modelEditor(currentPanel, e=True, polymeshes=True)
mc.modelEditor(currentPanel, e=True, cv=True)
mc.modelEditor(currentPanel, e=True, nurbsSurfaces=True)
else:
mc.modelEditor(currentPanel, e=True, allObjects=True)
# Show curves only (alt+5)
import maya.cmds as mc
currentPanel = mc.getPanel(withFocus = True)
getStatus = mc.modelEditor(currentPanel, q=True, cameras=True)
if getStatus == True:
mc.modelEditor(currentPanel, e=True, allObjects=False)
mc.modelEditor(currentPanel, e=True, nurbsCurves=True)
mc.modelEditor(currentPanel, e=True, cv=True)
mc.modelEditor(currentPanel, e=True, nurbsSurfaces=True)
mc.modelEditor(currentPanel, e=True, locators=True)
else:
mc.modelEditor(currentPanel, e=True, allObjects=True)
No comments:
Post a Comment