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

    CUSTOMGUI_FILENAME

    SDK Help
    0
    2
    736
    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
      Helper
      last edited by

      On 17/04/2018 at 12:27, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R19 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hi,

      I have a dialog and would like to provide a gadget which allows the user to browse for a path.
      For this I have used AddCustomGUI of type CUSTOMGUI_FILENAME to the dialog.
      I have played with the FILENAME_DIRECTORY option, and notice that when set TRUE this allows to browse for a folder, without seeing files. When set to FALSE you can browse for a specific file, but have no opportunity to select the folder (it just opens that selected folder).

      What I am looking for is a way to browse for a folder to be selected, but with the option to show the files.
      What I mean by that is to show the files and folders to the user, so s/he can recognize the target location by the files that are available in a folder, and then actually select that folder.

      Similar to the situation when you are looking for a particular image file in a complex tree structure of folders. Once the particular image found you then select OK to indicate this is the folder you want.

      In short: I want to look for files, but select a folder.
      Can this be done (with the available inbuilt functionality)?
      Of course it can be implemented from scratch ... which I'd like to avoid.

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

        On 18/04/2018 at 08:57, xxxxxxxx wrote:

        Hi,

        unfortunately our API provides no options to change the behavior of file requesters. Sorry.

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