Skip to content

Instantly share code, notes, and snippets.

@gr4ph0s
gr4ph0s / c4d_Shortcut_from_pluginID.py
Created April 26, 2018 10:51
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