Nour Almasri Posted January 22, 2019 Share Posted January 22, 2019 Hello , I'm looking for a way in python to open UV View (UV Editor) in a separate window , any help . Quote Link to comment Share on other sites More sharing options...
Nour Almasri Posted January 23, 2019 Author Share Posted January 23, 2019 import hou desktop = hou.ui.curDesktop() pane = desktop.createFloatingPane(hou.paneTabType.SceneViewer) # Get the display settings settings = pane.curViewport().settings() I did this code which open a new window for the scene viewer , but missing the last step to switch it to Uv View . Quote Link to comment Share on other sites More sharing options...
Andrea Posted January 23, 2019 Share Posted January 23, 2019 I've been looking for it and what I was able to find was just: hou.geometryViewportType.UV This is used to test if the current viewport is for example a UV viewport. For example: import hou cur = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer,0) viewport = cur.curViewport() if viewport.type() == hou.geometryViewportType.UV: print "is UV viewport" else: print "is not UV viewport" Also there is GeometryViewportSettings and viewportType but I have not been able to make them work correctly http://www.sidefx.com/docs/houdini/hom/hou/GeometryViewportSettings.html Quote Link to comment Share on other sites More sharing options...
Nour Almasri Posted January 26, 2019 Author Share Posted January 26, 2019 No one ? Quote Link to comment Share on other sites More sharing options...
San-San-San Posted February 24, 2019 Share Posted February 24, 2019 (edited) import hou cur = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer,0) hou.hscript('viewtype -t uv Build.%s.world.persp1' % cur.name()) Edited February 24, 2019 by San-San-San 1 Quote Link to comment Share on other sites More sharing options...
animknight Posted February 25, 2019 Share Posted February 25, 2019 import hou desktop = hou.ui.curDesktop() pane = desktop.createFloatingPane(hou.paneTabType.SceneViewer) # Assuming your newly created pane index is 1 cur = hou.ui.paneTabOfType(hou.paneTabType.SceneViewer, 1) viewport = cur.curViewport() viewport.changeType(hou.geometryViewportType.UV) Hope this helps 1 Quote Link to comment Share on other sites More sharing options...
Nour Almasri Posted April 23, 2019 Author Share Posted April 23, 2019 Thanks you guy for the help , the second code work fine with me , thanks again . 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.