Color-picker showing wrong color on dialogue

On 22/06/2014 at 16:39, xxxxxxxx wrote:

I've added a color-picker to my dialogue with:

self.AddColorField(TAB_TRANSFORM_NULL_COLOR, c4d.BFH_SCALEFIT, initw=50, inith=13)

I can access the stored value with:

gl_dialog.GetColorField(TAB_TRANSFORM_NULL_COLOR).get('color')

But it doesn't display the picked color properly on the dialogue.

Is this a known problem, or am I doing something wrong?

On 27/06/2014 at 22:45, xxxxxxxx wrote:

Okay I found the problem, after a couple of weeks!
There are two parameters for brightness that can mess up the display of the color.

GeDialog.SetColorField(id, color, brightness, maxbrightness, flags)

They shouldn't exceed 1.