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

    UA only possible in dialog?

    Scheduled Pinned Locked Moved PYTHON Development
    3 Posts 0 Posters 952 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 21/07/2018 at 04:12, xxxxxxxx wrote:

      I have a ObjectData plugin which uses a res file to define some attributes.
      Thus the res file uses a CONTAINER and not a DIALOG.

      Looking at the documentation, I guess I cannot define a User Area using a res file to define attributes.
      USERAREA UALIBRARY { ...} gives an error.

      So, if this a true, how to define / use a dialog - CreateLayout() - in a ObjectData plugin?

      -Pim

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

        On 23/07/2018 at 01:54, xxxxxxxx wrote:

        Hello,

        dialog descriptions and parameter descriptions are two different things.

        A dialog description defines the gadgets of a dialog. This includes custom gadgets based on user areas.

        The description of an object like ObjectData is a parameter description. It defines the parameters of that object. It is up to the Attribute Manager how to display these parameters. GeDialog and CreateLayout() have nothing to do with ObjectData plugins.

        See Resource Files Manual.

        It is possible to define the custom GUI that is used to display a certain parameter. You can create such custom GUIs using the C++ classes CustomGuiData and iCustomGui. iCustomGui is based on GeDialog.

        You find an example for such a custom GUI in the customgui_string.cpp example.

        best wishes,
        Sebastian

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

          On 23/07/2018 at 11:00, xxxxxxxx wrote:

          Ok, clear.
          Thank you.

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