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

    Create Quicktab Radio Buttons

    Cinema 4D SDK
    r20 python
    3
    4
    587
    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.
    • B
      bentraje
      last edited by

      H

      I'm trying to add a user data to an object. Currently, what I have is

      1. Data Type: Interface
      2. Interface: Cycle.

      I want to change the interface to the Quicktab Radio but I am having a problem in accessing it through the API. Under the C4D description documentation, there is no "Quick Tab Radio" option. You can see what I am after here:
      https://www.dropbox.com/s/k5xt7f6rrthiadl/c4d118_quick_tab_radio_python.png?dl=0

      I can't also drag the interface parameter to the console. So I can't retrieve the ID number 😞

      I tried the c4d.CUSTOMGUI_QUICKTABRADIO from this thread but the code doesn't recognize such ID

      Is there a way around this?

      Thank you for looking at the problem

      You can see the current code below:

      import c4d
      
      def main():
          
          bc = c4d.GetCustomDataTypeDefault(c4d.DTYPE_LONG)
          bc[c4d.DESC_NAME] = "Visibility"
          bc[c4d.DESC_CUSTOMGUI]=c4d.CUSTOMGUI_CYCLE # Change this to Quicktab Radio. I also tried c4d.CUSTOMGUI_QUICKTABRADIO but it didn't worked. 
          
          dropdown_values = c4d.BaseContainer()
          
          dropdown_values[0]="Off"
          dropdown_values[1]="On"
          
          bc[c4d.DESC_CYCLE]=dropdown_values
          
          descID = op.AddUserData(bc)     
          
          c4d.EventAdd()
      
      # Execute main()
      if __name__=='__main__':
          main()
      
      1 Reply Last reply Reply Quote 0
      • M
        mp5gosu
        last edited by mp5gosu

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S
          s_bach
          last edited by

          Hello,

          for this custom GUI, there is no symbol representing its ID. The ID is 200000281.

          See also objectdata_descriptions.cpp.

          best wishes,
          Sebastian

          MAXON SDK Specialist

          Development Blog, MAXON Registered Developer

          1 Reply Last reply Reply Quote 1
          • B
            bentraje
            last edited by

            @s_bach

            Thank you. Works as expected.

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