Animation play function issue

I am getting an error when trying to use the Animation Blend example (http://developer.playcanvas.com/en/tutorials/intermediate/animation-blending/) from the website. I switched out the animations for my character model’s, but when I run setState it calls animation.play and I get the PlayCanvas error “cannot read property getNodes of undefined”.

I’ve printed and inspected the animation that I’m trying to play using the getAnimation function and it shows that the animation exists, but for some reason when I call play I get the getNodes error.

Anyone have issues with this? Know how to fix it? I can elaborate more if necessary.

Some more details would be good. Do you have a link to the project or app that produces the error?

That’s the best way to debug.

Figured out the issue! I didn’t realize you had to check the Activate box on an animation to be able to play animations programmatically.