Creating a .mel or .py file, via a shelf button.

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  10 October 2012
Creating a .mel or .py file, via a shelf button.

How would one go about creating a shelf button to output the exact contents of an existing script to a newly created .mel file.

I got lots of stuff to export, for example, I got a FurDescription.mel which was generated by saving a preset out from the AE and I want to give that description to a bunch of animators. It would be nice to have those Maya noobs only need to copy the shelf_****.mel to the prefs/shelves folder without them having to install lots of different scripts and such to particular folders ( and I especially don't want them entering the Maya program folders themselves). So, basically everything else can be installed via several single button clicks.

I've used fPrint and related scripts to export very simple data out to a file, but I can't successfully get it to rewrite a script out to a new file.

I getting better at learning MEL and read it quite well. If I had more time, I'm sure I could do it, but I'm running out of time.


Last edited by egglybagelface : 10 October 2012 at 03:35 AM.
  10 October 2012
Could you use Python to simply copy the script plus contents over to the user's Maya doc directory accordingly? You don't want to use maya.env or to point everyone to the same script pool?
  10 October 2012
...or MAYA_SCRIPT_PATH - env variable ?

- Oh no, it's me -
  10 October 2012
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

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
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 09:25 PM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.