button states question

On 01/10/2014 at 10:12, xxxxxxxx wrote:

Is there a way to

  1. Change the state of a button from active to inactive so that it still shows but is "grayed" out?
  2. Is there a way to change a button's color? I tried the code below, but it just changes the color under the button.

self.SetDefaultColor(MY_BUTTON, c4d.COLOR_BG, c4d.Vector(30.0, 10.0, 2.0))

On 01/10/2014 at 11:58, xxxxxxxx wrote:

To make inactive, use:
GeDialog.Enable(gadget, enable)

So for your example:

self.Enable(MY_BUTTON, False)

As far as the button goes, I don't think it's possible to change the button background color.