Python command to toggle viewport visualizer
1183 1 1- TheProgg
- Member
- 34 posts
- Joined: 11月 2016
- Offline
Does anyone know if this scene viewer visualization toggle is able to be set via python? I can toggle the visualizers themselves inside the menu via hou.viewportVisualizers.visualizers(category=hou.viewportVisualizerCategory.Scene) but cant seem to find anywhere about the primary pindrop button toggle.
- MirHadi
- Member
- 147 posts
- Joined: 7月 2015
- Offline
same question.
I did something lame like this, and of course It doesn't work!
desktop = hou.ui.curDesktop()
pane = desktop.paneTabOfType(hou.paneTabType.SceneViewer)
view = pane.curViewport()
dispSet = hou.viewportVisualizers(view)
if dispSet.isActive()==0:
dispSet.setIsActive(1, view)
else:
dispSet.setIsActive(0, view)
I did something lame like this, and of course It doesn't work!
desktop = hou.ui.curDesktop()
pane = desktop.paneTabOfType(hou.paneTabType.SceneViewer)
view = pane.curViewport()
dispSet = hou.viewportVisualizers(view)
if dispSet.isActive()==0:
dispSet.setIsActive(1, view)
else:
dispSet.setIsActive(0, view)
-
- Quick Links