View Full Version : fileDialog/directoryMask troubles

07 July 2005, 12:04 PM
i've got a problem with the command "fileDialog": i can't get the flag -directoryMask to work the way i want it to: as long i don't open a file the fileDialog window opens up in the various places i ask it to, but as soon as i open a file then the filedialog window opens up in the last place from where i opene up the file and NOT from the place i declared in the -directory mask flag...

here's an example of code:

string $getPath = `fileDialog -directoryMask "C:/Temp/*.mb"`;
file -open $getPath;

if anyone could help me i'd really appreciate it. there's probably a simple solution to this, but as i'm new to mel-scripting i just don't get it...

07 July 2005, 11:40 PM
check the maya scripts in /usr/aw/.../scripts/others (or C:\Program Files\Alias\...\scripts\others) (for opening or importing) and mabye you find how they store and use the paths.

08 August 2005, 05:45 PM
I am struggling with this currently--the key is the option var command--sadly--
it is minimally documented. I'll post when I get it down--Paul

CGTalk Moderation
08 August 2005, 05:45 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.