Ian Mackinnon Posted December 10, 2017 Share Posted December 10, 2017 Is there a keyboard shortcut to toggle the visibility of currently templated objects in the scene view? Or would it be possible to configure one? Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted December 10, 2017 Share Posted December 10, 2017 (edited) 3 hours ago, Ian Mackinnon said: Is there a keyboard shortcut to toggle the visibility of currently templated objects in the scene view? Or would it be possible to configure one? Yes. Do a CTRL + ALT + SHIFT on the UI you want a shortcut for, then configure it. Also you can run run that dialog with edit hotkeys. You want a shortcut for: Cycle View context, but CTRL + ALT + SHIFT will tell you that Also, be aware that if you are running Windows (at least 7), shift + alt will also change the keyboard layout if you have several ones already installed, which can be confusing because it's done silently.. Edit: Sorry, I misread the question, I thought you were talking about other objects visibility. Edited December 10, 2017 by AntoineSfx Quote Link to comment Share on other sites More sharing options...
Ian Mackinnon Posted December 11, 2017 Author Share Posted December 11, 2017 Thanks Antoine, It's useful to know about that hotkey feature, though in this case it appears not to work. I tried opening the display options dialog for the scene view, then clicking on "Templated geometry" under the "Guides" tab, but the status line reports, "WARNING: Hotkey access not available for the selected gadget." I wonder whether there is some other way to set that option, perhaps from Python or Hscript. Quote Link to comment Share on other sites More sharing options...
f1480187 Posted December 13, 2017 Share Posted December 13, 2017 Create new shelf tool and assign a shortcut to it. "Guides / Templated geometry" display option still not in HOM in Houdini 16.5 (it can be part of hou.GeometryViewportDisplaySet, I suppose). Use viewdisplay command. I didn't find a way to determine the option's state. Session can be is used to store it, but if templated geo were disabled initially, it will do nothing first time tool is used. Use this as the tool's Python script: import hou import toolutils # Toggle mechanism using session module. tgd = hou.session.__dict__.get('templated_geo_display', 'on') tgd = 'off' if tgd == 'on' else 'on' hou.session.templated_geo_display = tgd viewport = '%s.%s.world' % (hou.ui.curDesktop().name(), toolutils.sceneViewer().name()) command = 'viewdisplay -T %s %s' % (tgd, viewport) hou.hscript(command) Quote Link to comment Share on other sites More sharing options...
Ian Mackinnon Posted December 13, 2017 Author Share Posted December 13, 2017 Amazing, thank you! 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.