This project is read-only.

Execption Thrown!

Aug 5, 2008 at 2:55 AM

We are receiving this error on build of our sample animation.

An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in mscorlib.dll

Additional information: KeyNotFoundException

Dont have a clue what this means help needed.  We are building and animating in Maya 08. We believe we exported it right not sure where to go from here.

Thanks for any help.

Aug 5, 2008 at 4:48 PM
Hi. Where are you having this error? This error can occur is some places but the most common is when you try to access an animation clip that does no exist.

Example: skinnedModel.Animations["Idle"]
Aug 5, 2008 at 10:21 PM
Awesome thanks that helped out we figured out what it was. We named the clip in Maya "Walk" so we assumed that the clip name was "Walk" when it was actually "Take 001".

Now we are having issues with one of your samples PlayerMarines.  We are trying to use a button to switch between animations what would be the best way to go about it.

Thanks again for the help.
Aug 7, 2008 at 12:01 AM
Hi. The third sample in the XNAnimation provides an example on how to switch animations using cross fade blending. Check its source code.