View Full Version : autoload mel scripts?


jbreneman
09 September 2007, 03:14 PM
Hi, I am trying to do a window that pops up upon loading the Maya app. Like the troll rig at http://www.rigging101.com/

I have the script for the window, I just need to know how to make it autoload when a specific file is loaded in Maya.

Thanks,
Jason

azshall
09 September 2007, 03:33 PM
Hi, I am trying to do a window that pops up upon loading the Maya app. Like the troll rig at http://www.rigging101.com/

I have the script for the window, I just need to know how to make it autoload when a specific file is loaded in Maya.

Thanks,
Jason

In the script you're writing, just make sure it executes the main proc upon sourcing. If that is properly done you can have it source in the userSetup.mel and it should do what you're asking.

thematt
09 September 2007, 03:55 PM
maybe he means a script node, which is a script that is inside the file.
check the node help for script

cheers

GiantG
09 September 2007, 10:31 PM
yes, scriptnode is what you are looking for...

jbreneman
10 October 2007, 04:48 PM
got it, thanks guys!

Jason

CGTalk Moderation
10 October 2007, 04:48 PM
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.


1