Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Any examples of how c4d.gui.BaseCustomGui works?

    Cinema 4D SDK
    python 2023 2024
    2
    3
    653
    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.
    • G
      gsmetzer
      last edited by

      Hello,

      I want to implement BaseCustomGui but having trouble with the setup. I have been searching but cannot find any examples online how to set it up using python. Thanks for any tips!

      https://developers.maxon.net/docs/py/2023_2/modules/c4d.gui/BaseCustomGui/index.html

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @gsmetzer
        last edited by ferdinand

        Hello @gsmetzer,

        Thank you for reaching out to us. What you want to do here is not possible.

        In the Cineam 4D (classic) API exist two ways to implement a custom GUI gadget.

        • iCustomGui [C++ only]: Realizes a GUI gadget used as an attribute UI of a scene element displayed in the Attribute Manager. It is the implementation backend for a custom GUI which targets a data type. So, one can for example write a custom GUI for the datatype DTYPE_VECTOR or custom data type provided by oneself. This form of GUI gadget is used in descriptions resources.
        • GeUserArea[Python/C++]: Realizes a GUI gadget that can be used in a GeDialog (and its derived types). This form of GUI gadget is used in dialog resources or can be attached directly with GeDialog.AttachUserArea.

        So, in C++ there is frontend-backend pair BaseCustomGui and iCustomGui, just as for example it is the case with BaseObject and ObjectData. A BaseCustomGui is just the front end for a iCustomGui implementation.

        In Python it is not possible to create custom GUI gadgets to be used in descriptions. But you can do it for dialogs. We have three GeUserArea Python examples:

        • geuserarea_basic_r13.py
        • geuserarea_drag_r13.py
        • memory_viewer_r12.pyp

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • G
          gsmetzer
          last edited by

          This is an excellent explanation , thank you.

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