Jump to content


re-entering paint mode in otl


  • Please log in to reply
2 replies to this topic

#1 TomRaynor

TomRaynor

    Peon

  • Members
  • Pip
  • 58 posts
  • Joined: 20-May 12
  • Location:United Kingdom
  • Name:Thomas Raynor

Posted 06 August 2012 - 01:22 AM

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?
Tom Raynor
3D VFX Artist
The Mill - London

http://tom-raynor.com/

#2 bhaveshpandey

bhaveshpandey

    Illusionist

  • Members
  • PipPipPip
  • 273 posts
  • Joined: 12-October 08
  • Location:London
  • Name:bhavesh pandey

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..

Edited by bhaveshpandey, 06 August 2012 - 01:50 AM.


#3 sam.h

sam.h

    Illusionist

  • Members
  • PipPipPip
  • 251 posts
  • Joined: 19-January 09
  • Location:Adelaide, Australia
  • Name:Sam Hancock

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()




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users