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