Assign custom hotkeys by python

   162   0   1
User Avatar
Member
7 posts
Joined: May 2018
Offline
Hi, I want to assign custom hotkeys to a list of my shelf tools by python.
In a loop I remove assignment conflicts for each hotkey and use .addAssignment() and .saveOverrides().
Hotkeys conflict removal is saved by houdini in an hotkey override file but not the new assignments.
Actually in edit tool window I can see hotkeys are set for each tool but it won't save overrides.

Docs says (in a line) assigning a hotkey is like a default setting and not saved until you make changes to it!!! WTH! To what? How?

So I tried in that loop to change the tool help or its scrpit or lable or default language after assignment but houdini don't save hotkey changes to override file and hotkeys don't work!

Please let me know if I am doing it wrong or it's a bug, thanks
  • Quick Links