Search the Community
Showing results for tags 'sceneviewer'.
Found 1 result
definnegan posted a topic in General Houdini QuestionsI often run into problems with the houdini viewport, particularly working with volumes, where things get "stuck" in the viewport or are otherwise inaccurately represented. I'll have the display flag on a null, have "hide other objects" turned on, and still some volume I was looking at 5 minutes ago remains in the viewport. Or, for another fun example, everything just all of a sudden becomes the same color as the background viewport color and I can only see where things are by turning on point display. The only solution I've found is to close the scene view and open another one, which trashes all your viewport settings (visibility, camera view, normals display, selection settings, pinning, everything), so then you gotta go clicking around resetting everything, and then the viewport craps out again 5 minutes later. I finally got sick of doing that, so I whipped up a little shelf tool that has the effect of fixing some of the bogus display issues that I've encountered, and somehow maintaining all the viewport settings (nothing clever there, I just got lucky). It identifies all the scene viewers in your desktop, turns them into textports, and then turns them back into scene viewers. Here's the tool, I hope it saves you some time and frustration. Enjoy! ####get list of panes#### panes = hou.ui.paneTabs() viewers =  ####identify scene viewers#### for p in panes: if p.type() == hou.paneTabType.SceneViewer: viewers.append(p) ###turn scene viewers into textports, then back into scene viewers#### for v in viewers: trickview = v.setType(hou.paneTabType.Textport) newview = trickview.setType(hou.paneTabType.SceneViewer) # Dan Finnegan, FX TD: firstname.lastname@example.org #