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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    get toggle state of BitmapButton

    SDK Help
    0
    2
    366
    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
      Helper
      last edited by

      On 01/09/2017 at 07:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R18 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello.

      I have a description bitmap button with 
      container.SetBool(BITMAPBUTTON_TOGGLE, true);

      I use the following to get the parameter.

      (BitmapButtonStruct* )data->GetCustomDataType(CUSTOMDATATYPE_BITMAPBUTTON, BUTTON_ID);
      

      But how can I get the toggle state ?

      Thank you for your time.

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

        On 04/09/2017 at 08:18, xxxxxxxx wrote:

        Hi,

        unfortunately the toggle state is handled internally inside of the CustomGUI (not the CustomDataType), so there's no way to access it. You need to track it on your own in reaction to button presses.
        Sorry!

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