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
    1. Maxon Developers Forum
    2. plc
    3. Posts
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by plc

    • RE: How to select directories in a CUSTOMGUI_FILENAME?

      Hi @ferdinand ,
      Thanks a lot, that's exactly what I was looking for !

      flags: c4d.BaseContainer = c4d.BaseContainer()
              flags[c4d.FILENAME_DIRECTORY] = True
              # Add a CUSTOMGUI_FILENAME with our flags settings.
              self.AddCustomGui(id=MyDialog.ID_FILENAME, 
                                pluginid=c4d.CUSTOMGUI_FILENAME, 
                                name="Path", 
                                flags=c4d.BFH_SCALEFIT, 
                                minw=0, minh=0, 
                                customdata=flags)
      
      posted in Cinema 4D SDK
      P
      plc
    • How to select directories in a CUSTOMGUI_FILENAME?

      Thanks @ferdinand,
      Your post helped me a lot.
      Any idea how I could set a DIRECTORY selector instead of a FILE selector ?

      What is the corresponding pluginId to relace c4d.CUSTOMGUI_FILENAME ?

      I know how to popup a directory selector with this command

      c4d.storage.LoadDialog(c4d.FILESELECTTYPE_ANYTHING, "Select Directory", c4d.FILESELECT_DIRECTORY)
      

      But how could I integrate this into a layout ?

      Thanks 😉

      [edit @ferdinand]: Forked from https://developers.maxon.net/forum/topic/13872/

      posted in Cinema 4D SDK s26 python
      P
      plc