Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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