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

    Radio Button Update

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 304 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 18/01/2017 at 12:58, xxxxxxxx wrote:

      I'm trying to get a combo box drown down list to change its values based on which radio button is selected but I don't think that the plugin interface add's an event when a radio button is changed.

      Is there a way for the plugin interface to recognize when a radio button is changed?

      Thanks!

      AJ

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

        On 18/01/2017 at 14:17, xxxxxxxx wrote:

        Like any other element (assuming you are in a gedialog). Simply define in the Command fonction

        if id == ID_RATIO:
            value = self.GetLong(ID_RATIO)
        
        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 18/01/2017 at 15:45, xxxxxxxx wrote:

          Thanks gr4ph0s! I thought it was more complicated then that.

          Just a note if others are looking to do the same that you need to clear the combo box list with FreeChildren()

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