focus = hou.node('/obj/subnet1/') focus.setSelected(True) desk = hou.ui.curDesktop() scene = desk.paneTabOfType(hou.paneTabType.SceneViewer) scene.setIsCurrentTab() scene.curViewport().homeSelected()
This shelf snipped should select an object switch to sceneviewer tab ( which it does ) and then home the selected object.
I only works if I press the shelf button twice . The first press swallows the homeSelected ..
Is there a way to force a redraw or refresh or something like it ?