MEL Script Samples

Here is an example script for switching visibility on the FK/IK controller on a rig. This is good so that the animator doesn't have to manually turn the visibility on the controllers on/off or hide them, it automatically is hidden whenever the switch is changed. File


Since I've worked primarily in 3ds Max for the last four years, and most of the MEL scripting I did was in college, I decided to throw together a mock script to show that I can script in MEL. This script creates a joint chain and a cylinder, names them, skins the cylinder to the joint chain and then creates a window with slider controls so you can move it around. You can find the script here. (It's a .mel file so right-click and "save as", execute it in Maya to see what it does)