captainbuckfish Posted October 20, 2017 Share Posted October 20, 2017 Good evening, New to python and wanted to get to grips with rigging in Houdini. Been working though the 3DBuzz Technical rigging series and been tripping up over all manner of stuff. On the stretchy spline section of the tuts there is a section that errors out and I am not sure why. The code is stretchRatioParm = hou.FloatParmTemplate("stretchRatio", "Stretch Ratio", 1) startBone.addSpareParmTuple(stretchRatioParm, (“Stretchy IK”, )) Error message reads Traceback (most recent call last): File “stretchyIK”, line 85, in <module> File “stretchyIK”, line 14, in techrig_stretchyIK_Tool File “stretchyIK”, line 54, in techrig_stretchyIK File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 44, in addSpareParmTuple _addParmTuple(self, parm_template, in_folder, create_missing_folders) File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 71, in _addParmTuple parm_template_group, in_folder, create_missing_folders) File “CPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 93, in _ensureFolderExists “Invalid containing folder name(s)”) OperationFailed: The attempted operation failed. Invalid containing folder name(s) Would love if somebody could explain this? I know the tutorials were made in Houdini 9 have there been changes that would make this not work now? Many thanks, Duncan Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted October 21, 2017 Share Posted October 21, 2017 That's pretty old tutorials and many things have changed since then. To add a spare parameter: ptg = node.parmTemplateGroup() parm = hou.FloatParmTemplate('foo', 1) ptg.addParmTemplate(parm) node.setParmTemplateGroup(ptg) http://www.sidefx.com/docs/houdini/hom/hou/ParmTemplateGroup Quote Link to comment Share on other sites More sharing options...
captainbuckfish Posted October 28, 2017 Author Share Posted October 28, 2017 Thank you for the reply. Still trying to understand this, these rigging tutorials are like being dropped into the deep end with no building blocks for the basics. So to add to the startBone ptg = startBone.parmTemplateGroup() stretchRatioParm = hou.FloatParmTemplate("stretchRatio", "Stretch Ratio", 1) ptg.addParmTemplate(stretchRatioParm) startBone.setParmTemplateGroup(ptg) Sorry, like I said new to python 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.