How to switch the viewport type (top, bottom, etc) in Python?
How to set viewport type (top, bottom, etc) in Python
447 2 0-
- raincole
- Member
- 307 posts
- Joined: 8月 2019
- Offline
-
- raincole
- Member
- 307 posts
- Joined: 8月 2019
- Offline
-
- animatrix_
- Member
- 3924 posts
- Joined: 2月 2012
- Offline
You can do it like this:
desktop = hou.ui.curDesktop() viewport = desktop.paneTabOfType(hou.paneTabType.SceneViewer) if viewport.isCurrentTab(): view = viewport.curViewport() view.changeType(hou.geometryViewportType.Perspective)
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

patreon.com/animatrix | vimeo.com/animatrix3d
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

patreon.com/animatrix | vimeo.com/animatrix3d
-
- Quick Links