[Sidefx-houdini-list] Using hom to find if a parameter has been promoted

Sandy Sutherland sandy.maillists at gmail.com
Thu Jan 26 05:13:18 EST 2017


NM - Graham, you already gave me a clue, p.isDisabled() is going to help me
with this.

Thanks so much -

Cheers

Sandy

On Thu, Jan 26, 2017 at 10:00 AM, Sandy Sutherland <
sandy.maillists at gmail.com> wrote:

> Yep Graham,
>
> If you have any ideas, please do pass them on.
>
> BTW - I would like to take this opportunity to thank you so much for your
> Parm and Node tools that are out there, have been a huge help to me in
> finding my way in my Houdini hom journey!
>
> Cheers
>
> Sandy
>
> On Wed, Jan 25, 2017 at 5:42 PM, Graham Thompson <captainhammy at gmail.com>
> wrote:
>
>> Oh, this is for VOP parameters that have hidden input connections?  That's
>> definitely different.
>>
>> In that case the parameter is disabled because the promoted part really
>> means that it has a node wired into the corresponding node input for that
>> field and that the node is also hidden.  You'd have to basically special
>> case for the VOPs to figure out a parameter is a) disabled, b) has a
>> hidden
>> input connector, or that it isn't hidden and is a parameter input
>>
>>
>> On Wed, Jan 25, 2017 at 9:32 AM, Sandy Sutherland <
>> sandy.maillists at gmail.com
>> > wrote:
>>
>> > Ah ok - thanks Graham, it was basically a snip, showing that
>> Mask_Switcher
>> > had a lollipop showing that it was promoted to the parent node, while
>> > SampIndSSS does not, so is not promoted, testing both of these showed no
>> > expressions and getReferencedParm() on both, returned the same parm,
>> i.e.
>> > != returned False.
>> >
>> > Cheers
>> >
>> > Sandy
>> >
>> > On Wed, Jan 25, 2017 at 5:16 PM, Graham Thompson <
>> captainhammy at gmail.com>
>> > wrote:
>> >
>> > > Hi Sandy,
>> > >
>> > > The list doesn't allow attachments so we can't see what is happening.
>> > >
>> > > What Edward mentioned is correct though so if it's not working
>> something
>> > > else must be going on (or perhaps a bug).
>> > >
>> > > Cheers,
>> > >
>> > > Graham
>> > >
>> > > On Wed, Jan 25, 2017 at 7:42 AM, Sandy Sutherland <
>> > > sandy.maillists at gmail.com
>> > > > wrote:
>> > >
>> > > > Sigh - not working, returns the same result for both Mask_Switcher
>> and
>> > > > SampIndSSS as shown in the pic.
>> > > >
>> > > > Thanks
>> > > >
>> > > > Sandy
>> > > >
>> > > > On Wed, Jan 25, 2017 at 2:30 PM, Sandy Sutherland <
>> > > > sandy.maillists at gmail.com
>> > > > > wrote:
>> > > >
>> > > > > Thanks Edward,
>> > > > >
>> > > > > Will check that out.
>> > > > >
>> > > > > S.
>> > > > >
>> > > > > On Wed, Jan 25, 2017 at 2:17 PM, Edward Lam <edward at sidefx.com>
>> > wrote:
>> > > > >
>> > > > >> On 25/01/2017 6:21 AM, Sandy Sutherland wrote:
>> > > > >>
>> > > > >>> I need to find if a parm has been promoted so as not to set it.
>> > > > >>>
>> > > > >>
>> > > > >> Here's an illustrated example from a Python Shell:
>> > > > >>
>> > > > >> >>> p1 = hou.parm('/obj/torus_object1/tx')
>> > > > >> >>> p1.expression()
>> > > > >> 'ch("../box1/tx")'
>> > > > >> >>> p2 = hou.parm('/obj/torus_object1/ty')
>> > > > >> >>> try: p2.expression()
>> > > > >> ... except: print "no expr"
>> > > > >> ...
>> > > > >> no expr
>> > > > >> >>> print "has ref:", p1.getReferencedParm() != p1
>> > > > >> has ref: True
>> > > > >> >>> print "has ref:", p2.getReferencedParm() != p2
>> > > > >> has ref: False
>> > > > >>
>> > > > >>
>> > > > >>
>> > > > >> Cheers,
>> > > > >> -Edward
>> > > > >> _______________________________________________
>> > > > >> Sidefx-houdini-list mailing list
>> > > > >> Sidefx-houdini-list at sidefx.com
>> > > > >> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini
>> -list
>> > > > >>
>> > > > >
>> > > > >
>> > > >
>> > > > _______________________________________________
>> > > > Sidefx-houdini-list mailing list
>> > > > Sidefx-houdini-list at sidefx.com
>> > > > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> > > >
>> > > >
>> > > _______________________________________________
>> > > Sidefx-houdini-list mailing list
>> > > Sidefx-houdini-list at sidefx.com
>> > > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> > >
>> > _______________________________________________
>> > Sidefx-houdini-list mailing list
>> > Sidefx-houdini-list at sidefx.com
>> > https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>> >
>> _______________________________________________
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
>> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>>
>
>



More information about the Sidefx-houdini-list mailing list