Jump to content

Store color from color editor with python

Recommended Posts

I am trying to store a color value from color editor using python but no success so far, I did found this on the manual but Icould not figure how to store the values to use it later.


def handleColorChange(color, alpha):
    print "Current color in editor:", color, ", alpha=", alpha

It does updates the values but I could not figure how to estore the r,g,b values in a variable

I would appreciate the help

Edited by Mzigaib

Share this post

Link to post
Share on other sites


I just found out that you need to use hou.ui.selectColor() to get color properly

Thanks anyway!

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