[Sidefx-houdini-list] ability to toggle vis of a OBJ in an OTL
gthompson at sidefx.com
Tue Nov 4 20:27:39 EST 2008
I think by obj networks you are referring to Geometry objects right? At
least that's what I figure since you are referring to using
hou.Node.setDisplayFlag(togglevalue) since setting that to False on a
sop wouldn't do anything. Couldn't you just enable the Display
parameter on the geo objects and link the value to your toggle?
Michael K O'Brien wrote:
> I thought there was a thread on this recently, but I can't seem to find it.
> I have an otl, and inside that otl I have several obj networks. I'd like to
> toggle the visibility of the obj networks based on a parm on the otl.
> I created a toggle on the otl, and wrote a Python callback that calls
> node.setDisplayFlag() to the value of the toggle. When I'm editing the otl,
> this works great. When I switch the otl to non-editing, the callback fails
> because the node is read-only.
> Shy of a switch with a null, is there a way to have an otl toggle the
> display state of a child of that otl?
> Michael K O'Brien
> mobrien at pixar.com
> HEDBERG: I played golf. I'm not good at golf. I never got a hole-in-one, but
> I did hit a guy. That's way more satisfying. You're supposed to
> yell, "Fore," but I was too busy mumbling, "There ain't no way
> that's going to hit him."
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
Side Effects Software Inc.
More information about the Sidefx-houdini-list