How to set viewport type (top, bottom, etc) in Python
1028 2 0- raincole
- Member
- 442 posts
- Joined: 8月 2019
- Offline
- raincole
- Member
- 442 posts
- Joined: 8月 2019
- Offline
- animatrix_
- Member
- 4515 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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | animatrix2k7.gumroad.com
-
- Quick Links