TomRaynor Posted August 6, 2012 Share Posted August 6, 2012 I have an otl, which has a paint node inside it and part of otl depends on painting an attribute on some geometry. I was wondering if anyone might know how I can re-enter paint mode from the top level of the otl by for example pressing a button on the top level UI. I thought that by selecting the paint node it would get into paint mode and so tried making a button that ran some python code to select the paint node from within the otl. This seems pretty buggy/inconsistant however, and also the parameter window switches to the paint node's parameters instead of the top level otl UI which is a bit of a pain. Any thoughts? Quote Link to comment Share on other sites More sharing options...
bhaveshpandey Posted August 6, 2012 Share Posted August 6, 2012 (edited) set it up as an editable node(in the type properties of the otl). for the selection, maybe selecting it as a dive target would help.. Edited August 6, 2012 by bhaveshpandey Quote Link to comment Share on other sites More sharing options...
sam.h Posted August 7, 2012 Share Posted August 7, 2012 I can't remember exactly what I used to do, but it was something like using hou.Node.setCurrent() on the paint node, then using hou.SceneViewer.enterCurrentNodeState() on the scene viewer. The parameter pane would change which was annoying, I just got into the habit of pinning the parm panes before pressing the button :/ You can get the scene viewer with: >>> import toolutils >>> toolutils.sceneViewer() 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.