lamer3d Posted December 13, 2017 Share Posted December 13, 2017 Hi. Is there any way to access and expand those toolbars via Python? Quote Link to comment Share on other sites More sharing options...
Luijee Posted December 14, 2017 Share Posted December 14, 2017 (edited) I haven't seen a function for this inside HOM but there is in hscript, which you can call from python. http://www.sidefx.com/docs/houdini/commands/viewerstow.html This should work: import toolutils def viewName(viewer): ''' Returns the Scene viewer name in a hscript compatible format ''' name = { 'desktop' : viewer.pane().desktop(), 'pane' : viewer.name(), 'type' :'world', 'viewport': viewer.curViewport().name() } # special case for floating windows - they don't belong to desktops if name['desktop']==None: name['desktop'] = '*' else: name['desktop'] = name['desktop'].name() return '{desktop}.{pane}.{type}'.format(**name) viewer = toolutils.sceneViewer() hscriptViewer = viewName(viewer) cmd = "viewerstow -t open -b open -l open -x open -m open -c open -d open %s" % hscriptViewer hou.hscript(cmd) Edited December 14, 2017 by Luijee comment 1 Quote Link to comment Share on other sites More sharing options...
lamer3d Posted December 15, 2017 Author Share Posted December 15, 2017 Wow! Amazing find! Gonna give it a try! 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.