Isn't there a Display channel on geometryOPs under the MiscTab you can
channel reference ? You really want to use channels and not flags.
Flags are not editable on a locked OTL. Prior versions allowed you to use
the !!ch syntax on parameters but if memory serves me correctly you can't
use that anymore...plus it was dangerous as the !!ch could lost very easily
depending on what a user did to the objects.
You should also be able to use the VisibleObjects Parameter under the Subnet
Tab ( I believe that is what it is called as I don't have Houdini in front
of me) That parameter should allow you to use wildcards (*, ^) specify
which objects in side the OTL are visible.
Hope that helps:)
-k
On Tue, Nov 4, 2008 at 8:27 PM, Graham Thompson <gthompson at sidefx.com>wrote:
> Hey Mike,
>> 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:
> > Hola~
> >
> > 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?
> >
> > MO
> >
> > --
> > Michael K O'Brien
> > mobrien at pixar.com> > Pixar
> >
> > 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> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list> >
>>> --
> Graham Thompson
> Technical Director
> Side Effects Software Inc.
> www.sidefx.com
>> _______________________________________________
> Sidefx-houdini-list mailing list
>Sidefx-houdini-list at sidefx.com>https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list>