maya

Exporting Attribute Settings in MEL

Sometimes you are working on a project, and you want to save your settings on a current object so that you can re-apply them at a later time. This can get tricky with Animation Curves. There is a command that is not documented in the Maya help that can be very useful for recreating animation curves and their keyframes.

getCopyAnimCurveCommands().

Check back soon, and I’ll explain more about it.

exportAttrSettings_v1.mel

Set Driven Key

A Set Driven Key is a powerful tool for a TD. It’s a simple concept, but when I was first learning about it, I got confused by the GUI that maya used to create them. I found later that it was much easier to use MEL to script the creation of a Set Driven Key.

Read More

Clusters that Follow

One problem I have had with using Clusters in Maya is that if you parent them into the rig then you get a double transform on the vertices in the Cluster. But here is a solution I learned today.
1. select your verts, create your cluster
2. Assuming it’s named cluster1(default name), type in the following:

connectAttr -f cluster1Handle.pim cluster1.pm;

This will connect cluster1Handle.parentInverseMatrix to cluster1.bindPreMatrix.

3. Group the Cluster and then parent it into the rig.

The cluster will now follow the rig, without double transforming.