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?
re-entering paint mode in otl
Started by TomRaynor, Aug 06 2012 01:22 AM
2 replies to this topic
#2
Posted 06 August 2012 - 01:50 AM
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..
for the selection, maybe selecting it as a dive target would help..
Edited by bhaveshpandey, 06 August 2012 - 01:50 AM.
#3
Posted 07 August 2012 - 08:49 AM
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()
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()
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users










