Curves in .anim files?

Hi, I’m trying to add curves to my .anim files, since I need it to controll the IK in my feet and hands, but .anim files seems like they don’t have this option, at least no so easy.
Does anyone know how to add curves to .anim files or if it is even possible?

Thanks

Really old thread, but I found it so maybe others will too.

I also had this problem, and the simple answer is that you can’t add a curve to a ‘.anim’ file directly. You can however add a curve, using the animation window, to the class that controls the character. That is, the script that contains the OnAnimatorIK() method.

Create two public floats, say ‘leftFootWeight’ and ‘rightFootWeight’.

Then select the character in hierarchy, and in the Animation window, select the animation to add the curves to and click the ‘Add Property’ button at the bottom of the properties list.

In the drop down that appears you should see the name of the class followed by the word ‘Script’ (in brackets). Open this drop down and you should see your foot weight variables.

Add these to the animation, and set their values as required.

The animation will now update these values directly, and you can use them in your SetIK*Weight() methods.

Animations can be used to directly edit any publicly accessible values within class that contains the animator controller, and it’s a really powerful piece of kit.

Hope this helps someone.

Danny

Does this help?