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

Bloomer, Justin Douglas jdb130130 at email.tamu.edu
Thu Nov 5 08:18:29 EST 2015


Hello Dan,

That does help, I at least know what to look at as a reference to create
it. I will give it a shot.

On Thu, Nov 5, 2015 at 12:20 AM, Dan Wills <gdanzo at gmail.com> wrote:

> 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
> class).
> * 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
> (hou.Node.setParmTemplateGroup()).
>
> 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
> Dan
>
> 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
> >
> _______________________________________________
> 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