Jump to content
shadowst17

Creating a color parameter with Python(SOLVED)

Recommended Posts

Quick question, How do I go about creating a colour parameter on a node? There doesn't seem to be a ParmTemplate for it and there's no documentation on this type of parameter for what I can find.

Edited by shadowst17

Share this post


Link to post
Share on other sites

Hi, here it is

mycolor = hou.FloatParmTemplate("color","color",3,look=hou.parmLook.ColorSquare,naming_scheme=hou.parmNamingScheme.RGBA)

node = hou.selectedNodes()[0]

node.addSpareParmTuple(mycolor)

  • Thanks 1

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

×