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
    • Admin
    • Login

    Is there a filename gui for a GeDialog? [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    5 Posts 0 Posters 580 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/01/2016 at 11:21, xxxxxxxx wrote:

      hey all,

      I just feel kinda dumb but.. I can't find a filename gui for a GeDialog.
      So I just wanted to ask you guys (since  you all have more experience) if there is one.
      I would need it to set Textures for a certain material channel.

      Thanks in advace!

      grettings,
      neon

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

        On 25/01/2016 at 01:39, xxxxxxxx wrote:

        Hello,

        there is no "primitive" filename dialog gadget. The filename GUI element is made of a default string gadget and a default button gadget. You can create this custom GUI element with AddCustomGui(). The ID of the filename GUI is CUSTOMGUI_FILENAME. The value stored with the GUI element can be accessed with SetString() and GetString():

          
        self.AddCustomGui(self._filename, c4d.CUSTOMGUI_FILENAME, "", c4d.BFH_SCALEFIT, 50, 10, c4d.BaseContainer())  
        self.SetString(self._filename, "C:\\justsomefile.png")  
        

        best wishes,
        Sebastian

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

          On 25/01/2016 at 08:54, xxxxxxxx wrote:

          Hey S_Bach,

          thanks for your reply, your really helped me alot!
          But if there actualy is a customgui, why isn't it in the documentation then?

          greetings, 
          neon

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

            On 25/01/2016 at 09:18, xxxxxxxx wrote:

            Hello,

            the Python API is an incomplete copy of the C++ API so you find a lot relevant information also in the C++ documentation, in this case you find the CUSTOMGUI type.

            Best wishes,
            Sebastian

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

              On 25/01/2016 at 11:43, xxxxxxxx wrote:

              Hey Sebastian,

              thanks for the tip, didn't know it was an actual copy of the c++ sdk.

              greetings, 
              neon

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