Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Created August 29, 2015 11:29
Show Gist options
  • Save SEVEZ/247beea1085931c4224d to your computer and use it in GitHub Desktop.
Save SEVEZ/247beea1085931c4224d to your computer and use it in GitHub Desktop.
check key modifiers
import maya.cmds as cmds
mods = cmds.getModifiers()
if (mods & 4) > 0:
print "Ctrl pressed"
else:
print "Ctrl not pressed"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment