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

    How to create a control and switch between multiple fields

    Cinema 4D SDK
    windows python 2025 2023 2024
    2
    3
    84
    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.
    • L
      lanxiang
      last edited by

      PixPin_2025-09-17_22-27-01.png
      I aspire to create a control with a label which follows multiple field switches, selected by the red box, as well as a control with three directional parameter settings. Unfortunately, I am currently unable to achieve it.
      PixPin_2025-09-17_22-29-51.png
      I just implemented above style, so I came to seek help. Python is the one I use.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hey @lanxiang I guess you are using *.res file to define the layout.
        For the red part this is the first one is defined like that:

        LONG MGCLONER_VOLUMEINSTANCES_MODE
        {
        	CUSTOMGUI QUICKTABRADIO;
        	CYCLE
        	{
        		MGCLONER_VOLUMEINSTANCES_MODE_NONE;
        		MGCLONER_VOLUMEINSTANCES_MODE_RENDERINSTANCE;
        		MGCLONER_VOLUMEINSTANCES_MODE_RENDERMULTIINSTANCE;
        	}
        }
        

        Then based on the value you will need to hide/unhide other elements within the GetDDescription method as shown here.

        The green one is a vector with a step of 1 and its defined like that:

        VECTOR	MG_GRID_RESOLUTION
        {
        	MIN 1;
        	MAX 2000000;
        	STEP 1;
        	OPEN;
        }
        

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        L 1 Reply Last reply Reply Quote 1
        • L
          lanxiang @m_adam
          last edited by

          @m_adam
          hi,I am very pleased to receive your reply, it is simply amazing. I have already implemented the above function according to your description. In fact, I found that as long as the code you provided is met, this style can be achieved. But QuickTabRadio is not included in the python SDK, which makes me very frustrated. I cannot freely implement the layout I desire. Do you have specific examples of various types of control objects in the *.res file?PixPin_2025-09-24_13-53-32.png
          Thanks for your help again!!!

          Best Regards,
          lanxiang

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