Skip to content

Instantly share code, notes, and snippets.

@gr4ph0s
Created April 26, 2018 10:51
Show Gist options
  • Save gr4ph0s/c8afce28c09f1b1fd012e89a59323261 to your computer and use it in GitHub Desktop.
Save gr4ph0s/c8afce28c09f1b1fd012e89a59323261 to your computer and use it in GitHub Desktop.
Get the shortcut qualifier + Key assigned to a pluginID
for i in xrange(0,c4d.gui.GetShortcutCount()):
short = c4d.gui.GetShortcut(i)
if short[c4d.SHORTCUT_PLUGINID] == c4d.IDM_UNDO:
shortcutQualifier = short.GetInt32(0)
shortcutKey = short.GetInt32(1)
print shortcutQualifier, shortcutKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment