Jump to content

Store color from color editor with python


Mzigaib

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.

Code:

def handleColorChange(color, alpha):
    print "Current color in editor:", color, ", alpha=", alpha
hou.ui.openColorEditor(handleColorChange)

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
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...