SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.

Home / forum / Animation / Mel Scripts & Programming / Use MEL to specify directory for File Dialog
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 14-07-2006, 04:19 PM   #1
discostu
Registered User
 
Join Date: Apr 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Question Use MEL to specify directory for File Dialog

I am working on a animation short with a group of about 8 people and we have an area where all the master files are stored. I want to keep my project directory in my home area, but I often want to open files in directories in the shared area. Maya provides no way of bookmarking this that I could find. I thought maybe MEL would offer a solution, but there seems to be no way to specify a directory for the "OpenScene" command.

BTW, I am on a linux machine.

Thanks.
Stu
discostu is offline   Reply With Quote
Old 14-07-2006, 04:28 PM   #2
vladimirjp
Subscriber
 
vladimirjp's Avatar
 
Join Date: Jun 2003
Location: stuck in the 90's boston, USA
Posts: 1,871
Thanks: 0
Thanked 4 Times in 3 Posts
Default

u can just make a GUI

with different set project commands,

i.e. one button could have the command to set to your project dir :
setProject "filepath here" ;


and another button with a differnt project file path.
__________________
Image dump
vladimirjp is offline   Reply With Quote
Old 14-07-2006, 05:30 PM   #3
discostu
Registered User
 
Join Date: Apr 2003
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't want to change my project. I just want to bookmark directories. But since maya has no way to do this I wanted to make a shelf button that opens the open file dialog with a specific path.
discostu is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MEL headache! happymat27 Members Lounge 5 05-12-2010 08:43 AM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.