Remove animation first key

I want to remove the animation first key, shift() seems not working while pop() works.

// modify truckAnimation
      var keyList = truckAnimation.getKeys()
      console.log(keyList)
      keyList.shift()


      scene.stopAnimation(truck)
      truckAnimationGroup.play(false)
      console.log(keyList)

image

I think we will need a playground demonstrating the problem as I think it should work.

2 Likes