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
    • Recent
    • Tags
    • Users
    • Login

    CommandData dialog using resource [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 531 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 24/07/2016 at 11:47, xxxxxxxx wrote:

      I was trying to create a simple CommandData plugin.
      However, I need a Link field in the dialog and I don't have that type of gizmo in the GeDialog to add to the dialog.
      So, I was trying to make the dialog through a resource file, as those have the LINK gizmo.
      The problem is that the only examples that are provided with the SDK are for CommandData plugins that create a dialog though code.
      A working example for a CommandData plugin that would work with a dialog resource would be great.
      Can anyone help out on this one?

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

        On 24/07/2016 at 12:34, xxxxxxxx wrote:

        I have an example called "Dialog Using Resources" on my website:
        https://sites.google.com/site/scottayersmedia/plugins

        Is that what you want?

        -ScottA

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

          On 24/07/2016 at 15:31, xxxxxxxx wrote:

          YES! That is it
          Thank you, Scott.

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

            On 25/07/2016 at 00:57, xxxxxxxx wrote:

            Hello,

            a "link field" is no standard GUI element but a custom GUI element. So you can add a LinkBoxGui to your dialog using AddCustomGui().

            Best wishes,
            Sebastian

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

              On 25/07/2016 at 02:56, xxxxxxxx wrote:

              Great to know that, Sebastian.
              I usually prefer to have dialogs/interfaces defined with resources, as it is easier to adjust and can deal with multiple languages.
              But, sometimes, I need to create dynamic, self adjustable interfaces and in that case, I need to do it using code.
              So, that is of great help.

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