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

    Creating an ObjectData plugin with a GeDialog GUI

    Scheduled Pinned Locked Moved PYTHON Development
    10 Posts 0 Posters 804 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

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/11/2012 at 18:29, xxxxxxxx wrote:

      All the ObjectData examples of the SDK use a .res file to create the GUI.
      The RegisterObjectPlugin requires me to provide a description. But I want to code all the GUI using GeDialog. So, how can I create an ObjectData plugin with a GUI defined in code?

      Rui Batista

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 11/11/2012 at 19:02, xxxxxxxx wrote:

        Oh, by the way, I want the GUI to appear on the Attribute Manager, not on a windows.

        Rui Batista

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 12/11/2012 at 00:59, xxxxxxxx wrote:

          You can't use a GeDialog for an ObjectData plugin. They use descriptions, not dialogs, to appear in the attributes manager. I've never tried creating a description in code, I always use a resource, though I am sure it can be done. But, note that you cannot use the resource editor to create a description resource, you have to do it by hand. So in effect you are building it manually anyway.

          Steve

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

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 12/11/2012 at 01:48, xxxxxxxx wrote:

            I have been doing so, so far. But due to the limitations of the resource description, when compared to the possibilities allowed by the GeDialog methods, I was asking if it was possible to create a GUI in the Attribute Manager with GeDialog.

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

              THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

              On 12/11/2012 at 03:38, xxxxxxxx wrote:

              Unfortunately not. But what limitations are you finding? I've always thought that the descriptions were very powerful.

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

                THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                On 12/11/2012 at 03:44, xxxxxxxx wrote:

                For example, I can't create a BITMAPBUTTON that adjusts automatically to the width of the panel.
                Also, creating a dynamic GUI that can change over time is impossible.

                Rui Batista

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

                  THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                  On 12/11/2012 at 03:54, xxxxxxxx wrote:

                  True, regarding the bitmap button. You'd need to write your own custom gui (it can be done: if you have Vray you see there's a custom gui in the tags which does this).

                  But you can create a dynamic gui easily enough. You need to use GetDDescription() though, and IIRC this isn't implemented in Python (yet?).

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

                    THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                    On 12/11/2012 at 04:01, xxxxxxxx wrote:

                    I have been using the SDK and the BITMAPBUTTON is not even referenced in the SDK, in the description section 😞

                    And I'm using python, so... this is a closed road for me.
                    If it is impossible to create Attribute Manager GUI with code and the only way to implement dynamically changeable GUI is through code, I can't create dynamically changeable GUI 😞

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

                      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                      On 12/11/2012 at 04:17, xxxxxxxx wrote:

                      Isn't it possible to have a USERAREA in the description .res file?
                      And, if possible, isn't it possible to make it span the whole width of the panel?

                      p.s. Of course, this is assuming that it is possible to assign bitmaps to the USERAREA, through code.

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

                        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

                        On 12/11/2012 at 04:19, xxxxxxxx wrote:

                        AFAIK, you can't have a user area in a description. I'd *love* to be wrong about this because it would make life so much easier. But I think this is correct.

                        It would be great if someone could write a custom gui to provide this functionality because it really is needed. Failing that a good example from Maxon on how to write a custom gui for descriptions would be very helpful.

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