Jump to content

Python - Create Operator Path

Recommended Posts


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?



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:


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