.mel scripts

Hello,

I have made some mel scripts for maya but I cannot get them to execute from inside maya. I installed them in /user/prefs/autodesk/maya/scripts…

is that the right place?
what am i doing wrong…thanks

on window, the path has to be something like :

C:\Users\sama.van\Documents\maya\2009\scripts

ahh i missed the version numb folder,

thanks

I prefer to source most of my scripts from within the script editor or a shelf button.

For example:

source "C:/Users/jbuck/myMelScripts/jbU3Grid.mel";

This allows me to put them wherever I want.

Also be aware that there are two scripts folders in the documents folders

maya\scripts\

and

maya\version number\scripts\

The first location, all scripts there are available to all versions of maya installed.

The second are available to the version number alone.

Placing scripts in the first location can lead to potential problems, if the script in question modifies or uses a feature not present in all versions.

I only place generic scripts that don’t rely on any specific features in the first location, and that is a real rarity. Even the largest scripts I have written or use are never bigger than a MB, so I usually keep duplicates in the version number script folders.

Thanks, Mike. I always wondered what the difference was!

I never tried to use this directory O__o…

Thanks melmonkey!!