garf Posted December 20, 2017 Share Posted December 20, 2017 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? Quote Link to comment Share on other sites More sharing options...
vtrvtr Posted December 20, 2017 Share Posted December 20, 2017 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) Quote Link to comment Share on other sites More sharing options...
garf Posted December 20, 2017 Author Share Posted December 20, 2017 Thanks This helped a lot: Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.