Farmfield 329 Posted March 21, 2017 Tried asking this in the SESI forums but no solution so far, so I'll try here too then. Is there a shortcut for hiding/unhiding the node guides in the viewport? If not, how do I create one? And I'm talking about the guides, not the handles, like with the copy SOP, etc... And yes, I know I can disable them in the display options, but I would really like a hotkey so I can just pop them on/off when I need to - like you can in most other comp and 3D apps... Share this post Link to post Share on other sites
galagast 166 Posted March 21, 2017 Are you able to post a screenshot of the "guides" you are referring to? Share this post Link to post Share on other sites
Farmfield 329 Posted March 21, 2017 LOL, you missed them? Here's the copy SOP... Share this post Link to post Share on other sites
Guest tar Posted March 22, 2017 uncheck 'Current geometry' then just select another node. Not as convenient as a hotkey but is fast. Share this post Link to post Share on other sites
MrScienceOfficer 53 Posted March 22, 2017 import toolutils scene_viewer = toolutils.sceneViewer() viewport_settings = scene_viewer.curViewport().settings() toggle = not viewport_settings.guideEnabled( hou.viewportGuide.NodeGuides ) viewport_settings.enableGuide( hou.viewportGuide.NodeGuides, toggle ) This should work. Share this post Link to post Share on other sites
galagast 166 Posted March 22, 2017 12 hours ago, Farmfield said: LOL, you missed them? Ahaha, just making sure By the way, Tom's script works! Share this post Link to post Share on other sites
galagast 166 Posted March 22, 2017 (edited) This one will toggle the guides for all visible Scene Viewers: panes = hou.ui.currentPaneTabs() for p in panes: if p.type().name() == 'SceneViewer': guide = hou.viewportGuide.NodeGuides val = p.curViewport().settings().guideEnabled(guide) p.curViewport().settings().enableGuide(guide, not val) Thanks again to Tom, for the general code to toggle the guides. The documentation currently seems to incorrectly list guideEnabled as enableGudie (notice two entries of enableGuide in GeometryViewportSettings). RFE'd! H16.0.550 Edited March 22, 2017 by galagast added link to docs 3 Share this post Link to post Share on other sites
Farmfield 329 Posted March 22, 2017 (edited) Works like a charm - you guys are awesome - OD Force rules, as usual! Posted it on SESI forums as well (crediting you guys, of course) perhaps it'll help someone else with this issue some day. Much appreciated, guys! On a sidenote, I really gotta get into HOM, hehe, I've just pushed it forward for years now... Edited March 22, 2017 by Farmfield 1 Share this post Link to post Share on other sites