fileDialog doesn't actually do any importing / saving, etc, itself. The options in the docs are just so that you get ui interactions that are more appropriate to what you're intending to do, but all it does on it's own is return the name of the file the user picked. Ie, if mode is set to "write", and the user selects a file that already exists, it will ask for confirmation to "overwrite" that file - but it still doesn't actually overwrite that file itself, it simply returns the name of the file... (at which point, presumably, you will overwrite the file yourself).
- Paul On Sat, May 16, 2009 at 7:25 PM, [email protected] <[email protected]> wrote: > > This is probably a really easy question, but maya help documentation > on the subject is worse than useless. > > My problem is how to retrieve a string location of a file using mc.file > (), mc.fileDialog(), WITHOUT trying to import a file save it or > anything else. I know this is probably really easy and i need it to > import a fluids cache into an intial state node ( . mcfi i think). > > Have tried to use fnmatch FileDialog but i m still a bit green. Any > help would be marvelous > > Thanks alot Guys !!! > > Tom Price > > > ile --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
