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

    Filename from GUI

    SDK Help
    0
    5
    434
    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

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

      On 08/03/2004 at 07:24, xxxxxxxx wrote:

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

      ---------
      Hi,

      I created a dialog using the ResEdit Plugin (V 1.7). This dialog's resource file includes a FileSelector field:

        
      FILENAME FILSELECTOR_ID  
      

      After selecting a file using this GUI there's a value shown in the edit-field but I cant't get the shown Filename for further usage.
      I tried this code to get the Filename but using this code had no success:

        
      Filename     file  
      GetFilename(FILSELECTOR_ID, file); //from GeDialog  
      

      Why I don't get the Filename from the field? Is there any other way?

      Thanks

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

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

        On 10/03/2004 at 02:09, xxxxxxxx wrote:

        No, that is the way it's supposed to work. What does the function return? (And is anything put at all into the "file" variable?)

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

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

          On 10/03/2004 at 02:29, xxxxxxxx wrote:

          The function returns TRUE but the 'file' variable contains nothing.

          I checked it with file.Content() but it always returns FALSE.

          For now I did a workaround:
          I'm using an edit-field and a button instead of the FileSelector field. That's not fine but it works.

          But if you have any idea what's going wrong, please let me know.

          Thanks

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

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

            On 17/03/2005 at 08:30, xxxxxxxx wrote:

            Having this same issue. Too bad it was never resolved. Does that mean it was a bug?

            David Farmer

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

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

              On 17/03/2005 at 09:43, xxxxxxxx wrote:

              I doubt it works. The docs for GetFilename say:

              Retrieves the text from string controls as a filename.

              This is not support for filename customguis!
              Get the customgui with FindCustomGui and retrieve the filename like this:

              path = fngui- >GetData().GetValue().GetFilename();
              

              Hope that helps.
              Katachi

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