Scripts currently using melDrop:
What you need to do:
- Download and open the zip
- drag & drop the files onto the Maya viewport
- click ok
Voila! Now you are able to install melDrop-enabled scripts the same way. What melDrop can do:
- copy the script file to your userScriptDir (check `internalVar -userScriptDir ` - in my case: C:Dokumente und EinstellungeneRiCEigene Dateienmaya7.0scripts)
- create a shelf button if you want
- copy the icon file to userBitmapsDir (has to have the scriptname + xpm/bmp! - check `internalVar -userBitmapsDir` - in my case: C:/Dokumente und Einstellungen/eRiC/Eigene Dateien/maya/7.0/prefs/icons/)
- add the script to your userSetup,mel (resists in userScriptDir to source scripts on Maya startup instead of just hashing them)
- setup a hotkey for the script (of course checks if hotkey is taken already)
- keep track of the script version (alerts you if you want to drop an older version)
Some more info for interested authors:
How does this work?
If you drop a .mel-file into the viewport Maya kindly sources the file automatically. Now Maya keeps track of all sourced and hashed script files. The locations of any defined procs are saved and whatIs command can get this location.
Zip-apps like winRAR and build in Zip automatically extract to the temp-dir. So its a completely valid location on the harddisk.
melDrop gets this location and if its different from your userScriptDir it offers to copy files there plus handy padding shelfButton, hotkey and version remembering stuff..
To setup all that you are invited to make use of the melDropEnabler:
That already covers a lot of (at least my) needs for script publishing. Trust me: There has been a loooot of thinking already how to improve this. And its not quite finished. So here is what it can NOT do and some problems there still are:
- copies ONLY to the userScriptDir (or userBitmapsDir for icons)
- currently does not handle multiple files (1 .mel-file, 1 icon .bmp or .xpm)
- only offers to start the "scriptname" NO arguments allowed
- dropping .txt causes an error-message to show but doesn't harm
- dropping .xpm causes fcheck to pop up for no reason on Maya > 7.0
- currently does not work with python