Quick additive animations with Mecanim

I am trying to do a quick punching animation for my character using the new Mecanim system. I watched the video tutorial with the hand waving, but the wave animation is much slower and can blend better. There is an “override” option for the layer that you can set in the controller(instead of additive), but that doesn’t seem to help. Is there something in the animation settings that will kill the transition between states and make the weight go straight to 1?

thanks for you help.
Scott

I figured it out. The issue has to do with a layer property in mecanim called “weight”. It controls the blending weight for the entire layer. When you create a layer in Mecanim, it defaults to 0 (no influence). You have to manually change it via script if you want it to play.

animator.SetLayerWeight( 1, 1.0f );

“animator” is an instance of the Animator class that your character uses. It grabs the layer (first parameter) and sets the weight (second parameter).