View Full Version : navigate through hard drive n UI

04 April 2006, 01:17 AM
Hi. I'm writing a script that will grab the translate, rotate and scale channels of the animated geometry and write them out into three separate documents for every frame of the animation. The script works fine, but there's one problem I can't figure out in the UI. By default, the text file gets written out to the bin folder of Maya. In the script I can write out the absolute path and it will work, as well. Howevere, I was wondering if there's a way of creating a drop-down menu that allows you to navigate through your hard dirve until you find the proper place to save your file at (like the one you use when you try to open or save your files). I think I looked through the entire UI help section, but didn't find that option. But then again, this is my second experience with Mel and I might have missed it. Thank you,

04 April 2006, 12:42 PM
Hey dude. Some days ago rokandic posted the code he uses when he need to navigate through folder. Here it is:

global proc string testPerformBrowser (string $path, string $fileType)
return $path;

button -c ("fileBrowser \"testPerformBrowser\" \"Pick Folder\" \"\" 4");

All credits go for him. ;)


04 April 2006, 03:08 AM
Cool, guys! Thanks a lot!

CGTalk Moderation
04 April 2006, 03:08 AM
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.