Jump to content
Sign in to follow this  
captainbuckfish

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×