Jump to content

adding spare parameter destroys other custom parameters with default e


pipit

Recommended Posts

I have an existing spare parameter on a node ('/obj/geo1/null') whose default value is set to $F.

When I try to add a new spare parameter to the same node using python, the default value of my first parameter was mysteriously reset and I lost the $F expression. Is this a bug or my python script? My python script has only 2 lines and I run them in the Python Shell:

float_template = hou.FloatParmTemplate('parm1', 'Label2', 1, (50,))

hou.node('/obj/geo1/null').addSpareParmTuple(float_template)

Attached is the simple Houdini scene that I used to test this.

test.hip

Link to comment
Share on other sites

I was wrong. It is indeed a bug and causing the default value to be set to 0. It appeared to work here at work due to the fact that we have our environment configured to not change parameters when their default changes. This caused the parm to still have $F set as the value though the default did indeed change to 0. I'll log a bug with SESI.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...