hom SceneViewer refresh problem

   1272   0   1
User Avatar
Member
383 posts
Joined: June 2010
Offline
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 ?
www.woogieworks.at
  • Quick Links