Jump to content
garf

Python - Create Operator Path

Recommended Posts

Hello,

What's the class to create an "Operator Path" parameter in python?

group.addParmTemplate(hou.FloatParmTemplate("myparam", "My Param", 1)) will create a float type parameter

What would create an Operator Path parameter?

image.png.cc886b09c3d3843fccb10a1262472d77.png

 

Share this post


Link to post
Share on other sites

It's a stringparmtemplate, more precisely with the NodeReference string type. You check this kind of thing by calling parmTemplate() on a given parameter. For example, for the "foo" parameter:

l

hou.node("somenode").parm("foo").parmTemplate() would return the template used for that parm (and a bunch of other stuff, you can filter if you want)

 

 

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

×