The
Jackal's Maya Bible
click here
to go back MEL
click here to go back
MODELLING
RENDERING
PARTICLES
ANIMATION
DYNAMICS
LIGHTING
TEXTURING
MEL
UI
BUGS
FILE
MANAGEMENT
I have a mel button on my shelf, it reads a script that I have
in my script dir.
but I have to source it every time I start maya.
So I have read the online docs and found nothing (not 100% sure
what to look for
any way ) that talks about the clipfx or the userSetup
any help would be great.
p.s. the script is based on the default Tesselation.mel from
Paul Anand,
The script sets the curve shade perscion to 3 for all objects.
Big deal right?
well what it does is set your shaded objects to be smooth (same
as key 3) but
unlike the #3 key your wire views of your objects won't
look like they were
set to patch per. of 60:) so it keeps the view nice and clean in
wire or shade.
I THINK you mean you want the .mel to run
during each startup, right?
The way I got scriptsMenu.mel to load up
each time automatically was to
place : {scriptsMenu;}
at the end of my
/usr/aw/maya1.0/scripts/startup/initialLayout.mel
this loads scripts menu each time.
The place to try SHOULD be: (disclaimer here...
your own risk... etc.)
/usr/aw/maya1.0/scripts/startup/initialStartup.mel
It is HIGHLY recommended not to change any
of the scripts
in the /usr/aw/maya1.0/scripts directory.
There isn't any reason
that this should be done. Also, any
changes there can't be
supported by A|W.
As for executing a command on startup, place
the commands into
the maya/scripts/userSetup.mel file.
By default it doesn't
exist; Maya will look for it and if it does
exist, the
file will be sourced.
You should add to your .maya file in your
home directory lines :
setenv MAYA_PLUGIN_PATH "/usr/aw/maya/devkit/plug-ins:/usr/people/duboi/maya/plugins"
setenv MAYA_SCRIPT_PATH
"/usr/aw/maya/scripts:$HOME/maya/scripts:/usr/people/duboi/maya/scripts"
setenv MAYA_FILE_ICON_PATH
"/usr/aw/maya/bitmaps:$HOME/maya/prefs/bitmaps:/usr/people/duboi/maya/bitmaps"
Change /usr/people/duboi/maya to the name
of directory where your scripts are.
You can check if this env is ok after maya
launch by typing : system printenv.
You should see your script directory in the
path printed.
Make sure that the name of your command is
the same as your file name.
If the name of your command is toto, your
script file should be toto.mel.
I think there is no need to add stuff to
userPrefs.mel to do that you want.





