pipit Posted October 27, 2011 Share Posted October 27, 2011 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 Quote Link to comment Share on other sites More sharing options...
graham Posted October 27, 2011 Share Posted October 27, 2011 Hmm, seems to work fine for me. Quote Link to comment Share on other sites More sharing options...
pipit Posted October 27, 2011 Author Share Posted October 27, 2011 Do u still see the first spare parameter "myInt" in the null node bound to $F after executing the python script? In my case, it's reset to 0 after I run the python script which should not be. Quote Link to comment Share on other sites More sharing options...
graham Posted October 27, 2011 Share Posted October 27, 2011 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.