Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Color-picker showing wrong color on dialogue

    Scheduled Pinned Locked Moved PYTHON Development
    2 Posts 0 Posters 196 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post