Author Topic: appendAnimation ISSUE - The index 103 is out of range 103 - Commercial License Job  (Read 209 times)

Hi, I have a "Show-stopping" issue with Flare3D. I have my models importing fine and I can append one animation at a time to the model but when I try to append more than one animation to a model I get a "index XXX is out of range XXX". I need to load and unload animations and also set sequences of animations that loop to a model.

CODE:

model = flareScene.addChildFromFile( "/assets/WomanDefaultModel_V2.f3d" );    
         
idleAnim = new Flare3DLoader2( "/assets/animations/animWomanIdle.f3d" ); 
      flareScene.library.push(idleAnim as Flare3DLoader2); 
            
jogFlipAnim = new Flare3DLoader2( "/assets/animations/animWomanJog .f3d" ); 
      flareScene.library.push(
jogAnim as Flare3DLoader2);    
Pivot3DUtils.appendAnimation( model, idleAnim ,"idleAnim" ,false);
Pivot3DUtils.appendAnimation( model, jogAnim ,"jogAnim" ,false ); 
The commercial job is required very soon. Please help. 

Hi,

This usually happens when the animations appended have a different bone hierarchy. Please make sure your animations follow these rules:
  • All animations have the same amount of bones.
  • The bones have the same names across all animations (exact names).
  • All bones have the same amount of animation frames.
Hope this helps,

Excellent. Sorted that problem :)

Only thing now is that when I append an animation to my character the character changes position on the stage yet when I open the animations in Flare3D studio the bones are in the same starting position. I have a base plane for a fake shadow that's not animated and it stays in the same place when appending. Any ideas? Is this related to the camera position in 3DStudioMax on export or something else?

We got it sorted :) - Thanks Ivan for your Help. We exported the animations only with no cameras and just bones.

Hi there, sorry for the delay. Glad you guys sorted it out!