So here's the deal with my MEL scripts. You are free to download them and use them however you like (commercial, educational, personal or otherwise). All I ask is that if you do something cool with them, let me know.
These are all heavily commented and were designed to be useful tools while also illustrating common MEL scripting techniques for novice programmers.
krSkinExporter.mel v1.0 - This little gem has saved my butt on several occasions. It provides the ability to export Maya's skinCluster weight data to an external ASCII (.wt) file. Then you can load that file and import the weights back onto a different mesh (but same point order). This script supports the export/import of multiple mesh objects using only a single .wt file. This makes it easy to copy/paste an entire character's weight data at once.
krDynChain.mel v2.0 - This is a popular script I wrote for The Art of Rigging books (but with some new additions). The script automates the task of applying dynamic forces to a chain of joints (using Maya Hair). Select a joint chain, hit the button the script will generate a neat and tidy dynamic joint chain. Version 2.0 includes the option to create a single 'jiggle-joint' using a simple particle/spring setup. It moves freely in all directions and runs quite fast so you can tack them all over the place.
krMathLib.mel v0.1 - Not the most comprehensive or exciting script, but its got some useful matrix/vector math functions. Good for prototyping plugins. Includes:
proc float[] matrixToFloatArray( matrix $mat) proc float[]
matrixProduct( float $m1[], float $m2[]) proc float[]
vectorXform( float $p[], float $m[]) proc matrix
floatArrayToMatrix( float $array[]) proc float[]
matrixToFloatArray( matrix $mat)
proc float[] getDotProduct( float $p1[], float $p2[])
|