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 - Restrict file types

    SDK Help
    0
    2
    168
    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 24/06/2014 at 05:05, xxxxxxxx wrote:

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

      ---------
      There is a FILENAME definition in the res file.  I want it to only accept .wav files.  I can recognize it in SetDParameter and throw a dialog but I cannot seem to forgo the setting of the FILENAME parameter by returning false.  It always sets the parameter.

      Maybe I am over complicating this, how do I limit a FILENAME parameter to only accept .wav files?

      Ama

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

        On 26/06/2014 at 10:33, xxxxxxxx wrote:

        There's no such option for the FILENAME parameter. Just don't load it when the user doesn't put a .wav
        file or show him an error dialog or status message (but don't open a dialog from SetDParameter()).

        Best,
        -Niklas

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