gemini Posted May 30, 2019 Share Posted May 30, 2019 (edited) Can I force the scene view to 'homeToSelection' ? I found the hou.GeometryViewport class but how can I get it in h16.5 ? THX!! G Edited May 30, 2019 by gemini Quote Link to comment Share on other sites More sharing options...
animknight Posted June 3, 2019 Share Posted June 3, 2019 import toolutils # Get the viewports from the sceneviewer scene_viewer = toolutils.sceneViewer() viewports = scene_viewer.viewports() print(viewports) >> (<hou.GeometryViewport right1 of type Right>, <hou.GeometryViewport front1 of type Front>, <hou.GeometryViewport top1 of type T op>, <hou.GeometryViewport persp1 of type Perspective>) # Choose the viewport you want to home selection persp_viewport = viewports[-1] persp_viewport.homeSelected() Hope it helps -J Quote Link to comment Share on other sites More sharing options...
gemini Posted June 4, 2019 Author Share Posted June 4, 2019 THX! Quote Link to comment Share on other sites More sharing options...
Alexey Vanzhula Posted June 12, 2019 Share Posted June 12, 2019 hou.ui.paneTabOfType(hou.paneTabType.SceneViewer).curViewport().homeSelected() 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.