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 CLOSED
 
Thread Tools Search this Thread Display Modes
Old 10 October 2012   #1
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.

Cheers.

Last edited by egglybagelface : 10 October 2012 at 03:35 AM.
 
Old 10 October 2012   #2
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 userSetup.py/mel to point everyone to the same script pool?
 
Old 10 October 2012   #3
...or MAYA_SCRIPT_PATH - env variable ?

/r
__________________
- Oh no, it's me -
 
Old 10 October 2012   #4
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.
 
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
CGSociety
Society of Digital Artists
www.cgsociety.org

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

All times are GMT. The time now is 06:47 AM.


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