[Sidefx-houdini-list] How to create a parameter on a node using python SOP

Dan Wills gdanzo at gmail.com
Thu Nov 5 01:20:50 EST 2015

Hi Justin,

In short, and assuming you want to do it with python: You need to:
* Get the parmTemplateGroup of the node (this is a method of the hou.Node
* Add the parameter that you want to add to the parmTemplateGroup (using
ptg.append(), ptg.insertBefore() or ptg.insertAfter())
* Then set the node with the modified parmTemplateGroup

You can see some examples of what this looks like by looking at the script
that node.asCode() returns, which can be particularly useful if you add a
spare parm (via 'Edit Parameter Interface') of the same type that you wish
to add (sounds like a vector3 from what you're saying) and then do
node.asCode() to see how to construct a parmTemplate of that type.

Hope that helps :D

On Thu, Nov 5, 2015 at 12:13 PM, Bloomer, Justin Douglas <
jdb130130 at email.tamu.edu> wrote:

> I am trying to figure out how to code a parameter that will drive a
> rotation of an object that is created in script. I see there is the
> hou.ParmTuple, but not really able to find anywhere that shows how to
> actually use it. Does anyone know how to go about making a parameter in
> code?
> -Justin "JEEBS" Bloomer
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

More information about the Sidefx-houdini-list mailing list