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

    BITMAP_BOOLEAN and BITMAPBOOL_TRISTATE? [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 273 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 01/07/2015 at 21:34, xxxxxxxx wrote:

      I'm just curious...

      How does one set the "tristate" state of a bitmap boolean control?

      C4D's user data lists these under the bitmap bool configuration for user data (BITMAPBOOL_ACTIVE, BITMAPBOOL_INACTIVE, and BITMAPBOOL_TRISTATE). Likewise, the "BOOL" description accepts a CUSTOMGUI type of BITMAP_BOOL under which you can specify the same options and IDs for custom icons to show up in the GUI...

      However, I have no idea what "TRISTATE" actually means or how you set it in Python. True and False obviously map to 1 and 0, but False can also be "None" as well. Setting the bool value to -1, 2, or any other integer seems to have no effect.

      What exactly is tristate and is it settable through Python?

      -CMPX

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

        On 02/07/2015 at 01:23, xxxxxxxx wrote:

        Hello,

        in Cinema 4D you can select multiple objects (of the same type). In this case the Attribute Manager tries to display the parameters of these objects. So a single GUI element has to display the values of multiple parameters. If all these values are the same this is no problem. But if the values are different the tristate is set to tell the GUI element to display something else like "Multiple Values". You find an example how a GUI element handles such a situation in the String CustomGUI C++ example.

        The BITMAPBOOL_TRISTATE value lets one define the ID of the icon used to display that tristate.

        Best wishes,
        Sebastian

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

          On 02/07/2015 at 05:30, xxxxxxxx wrote:

          Ah, I see!

          That makes sense. I thought maybe it was a setting for a boolean value other than 1 or 0. This makes more sense though. Thanks for the explanation!

          -CMPX

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