[Sidefx-houdini-list] Using hom to find if a parameter has been promoted
sandy.maillists at gmail.com
Wed Jan 25 09:30:52 EST 2017
Will check that out.
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()
> >>> 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
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list