Farmfield Posted March 21, 2017 Share 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... Quote Link to comment Share on other sites More sharing options...
galagast Posted March 21, 2017 Share Posted March 21, 2017 Are you able to post a screenshot of the "guides" you are referring to? Quote Link to comment Share on other sites More sharing options...
Farmfield Posted March 21, 2017 Author Share Posted March 21, 2017 LOL, you missed them? Here's the copy SOP... Quote Link to comment Share on other sites More sharing options...
Guest tar Posted March 22, 2017 Share Posted March 22, 2017 uncheck 'Current geometry' then just select another node. Not as convenient as a hotkey but is fast. Quote Link to comment Share on other sites More sharing options...
MrScienceOfficer Posted March 22, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
galagast Posted March 22, 2017 Share Posted March 22, 2017 12 hours ago, Farmfield said: LOL, you missed them? Ahaha, just making sure By the way, Tom's script works! Quote Link to comment Share on other sites More sharing options...
galagast Posted March 22, 2017 Share 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 Quote Link to comment Share on other sites More sharing options...
Farmfield Posted March 22, 2017 Author Share 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 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.