eolophus Posted November 10, 2020 Share Posted November 10, 2020 I would like to create a hotkey that will toggle between manual and auto update modes. I know how to add a hotkey for each of these states, but I would like to be able to press one key combination to switch from one mode to the other. Any ideas about how to implement this? Quote Link to comment Share on other sites More sharing options...
bunker Posted November 11, 2020 Share Posted November 11, 2020 you can create a shelf tool and set a keyboard shortcut auto = hou.updateMode.AutoUpdate manual = hou.updateMode.Manual if hou.updateModeSetting()==auto: hou.setUpdateMode(manual) else: hou.setUpdateMode(auto) 2 Quote Link to comment Share on other sites More sharing options...
ikoon Posted November 11, 2020 Share Posted November 11, 2020 Hi eolophus, this should work. You need to create a shelf tool, and assign a hotkey to it: mode = hou.updateModeSetting().name() if mode == 'AutoUpdate': hou.setUpdateMode(hou.updateMode.Manual) if mode == 'Manual': hou.setUpdateMode(hou.updateMode.AutoUpdate) I once made an image, how to create a shelf tool, and assign a hotkey, here: https://forums.odforce.net/topic/31240-rotating-in-increments/?do=findComment&comment=173469 I hope that it helps. 1 Quote Link to comment Share on other sites More sharing options...
eolophus Posted November 12, 2020 Author Share Posted November 12, 2020 Thanks to both of you! That is exactly what I needed. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.