Jump to content

Python issue from 3DBuzz Rigging tutorial


Recommended Posts

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 “Chmm.pngPROGRA~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 “Chmm.pngPROGRA~1/SIDEEF~1/HOUDIN~1.671/houdini/python2.7libs\houpythonportion.py”, line 71, in _addParmTuple
parm_template_group, in_folder, create_missing_folders)
File “Chmm.pngPROGRA~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

Link to comment
Share on other sites

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

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...