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
    1. Maxon Developers Forum
    2. Gemini
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 5
    • Posts 16
    • Best 0
    • Controversial 0
    • Groups 0

    Gemini

    @Gemini

    0
    Reputation
    5
    Profile views
    16
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Gemini Unfollow Follow

    Latest posts made by Gemini

    • RE: Add Title Items (not packable) to Custom Menu

      Hi, thanks for your answer. I'd like to add a title line like here for example the 'DINAMICS' line.
      G

      d7064b20-2060-4305-af64-94bb8f84ad00-image.png

      posted in General Talk
      G
      Gemini
    • Add Title Items (not packable) to Custom Menu

      Hey Forum,

      I have two questions for you. 😉

      1. Is there a way to add not pickable items like a title written with capital letter to custom menus created by python.
      2. How a toggle line be added and how can be get its sate ?
        I added a part of my code above where the str item is not working sadly.

      THanks,
      G

      ...

      def insert(root: c4d.BaseContainer, title: str, data: MenuData) -> c4d.BaseContainer:
          """Inserts #data recursively under #root under the entry #title.
          """
          # Create a new container and set its title.
          subMenu: c4d.BaseContainer = c4d.BaseContainer()
          subMenu.InsData(c4d.MENURESOURCE_SUBTITLE, title)
      
          # Iterate over the values in data, insert commands, and recurse for dictionaries.
          for key, value in data.items():
              if isinstance(value, dict):
                  subMenu = insert(subMenu, key, value)
              elif isinstance(value, int):
                  subMenu.InsData(c4d.MENURESOURCE_COMMAND, f"PLUGIN_CMD_{value}")
              elif value is None:  # Insert a separator
                  subMenu.InsData(c4d.MENURESOURCE_SEPARATOR, None)
              elif isinstance(value, str):
                  # Add a non-clickable title
                  subMenu.InsData(c4d.MENURESOURCE_STRING, value)
                  
          root.InsData(c4d.MENURESOURCE_SUBMENU, subMenu)
      
          return root
      
      posted in General Talk programming
      G
      Gemini
    • RE: Easy Way to Set and Get parameter Values

      Thanks for your answer.

      posted in Cinema 4D SDK
      G
      Gemini
    • RE: Easy Way to Set and Get parameter Values

      I meant in python.

      posted in Cinema 4D SDK
      G
      Gemini
    • Easy Way to Set and Get parameter Values

      Hey,
      I need some information how to set and get a specific parameters:

      1. for example here on the render settings
        406825a3-1ade-44ab-a818-d491d4f866af-image.png

      2. On any node.
        1df8e35b-183d-43a9-abff-0167a53a1166-image.png

      3. WHat's the easiest way to get a parameter id ( any object any parm ) ?

      Thanks
      Szabolcs

      posted in Cinema 4D SDK programming
      G
      Gemini
    • RE: Customize Palettes by Python ( add Buttons )

      Thanks for the answer

      posted in General Talk
      G
      Gemini
    • RE: Customize Palettes by Python ( add Buttons )

      Could you share information about layout editing if there are any python methods or threads here ?

      posted in General Talk
      G
      Gemini
    • Customize Palettes by Python ( add Buttons )

      Hi,
      Is there a way to insert a button to a Layout in C4D python ?
      Thanks,
      G

      66d29318-ac5a-4e20-9c80-c3ceefa589fc-image.png

      posted in General Talk programming
      G
      Gemini
    • RE: Plugin Which Creates MenuItems with Scripts ( not from user folder )

      I just simply add a plugin to C4D which creates a user menu into C4D all in one pack without adding any script into the user C4D preferences folder ( library / scripts ) . Menu and script embedded solution all in one plugin inside.

      posted in General Talk
      G
      Gemini
    • RE: Plugin Which Creates MenuItems with Scripts ( not from user folder )

      Anyone here ? Any practice like this ?

      posted in General Talk
      G
      Gemini