How to schedule animations in a GLTF model?

Hello,
I am trying to use a GLTF model including some customized animations in an Entity which added by CZML file. But I havan`t found any documents about how to schedule these animations when the model is running on the path…
So, could you tell me how to solve this problem? thanks. :slight_smile:

here is my code :

    const czmlData = Cesium.CzmlDataSource.load("http:localhost:3000/data/xingli.czml");
    czmlData.then((ds)=>{
      viewer.dataSources.add(czmlData);
      let rocket_entity = ds.entities.getById("LaunchVehicle/LaunchVehicle1");
      viewer.trackedEntity = rocket_entity;
      console.log(rocket_entity);
      // load model
      const model = viewer.scene.primitives.add(Cesium.Model.fromGltf({
        url: "http:localhost:3000/model/rocket.glb",
        minimumPixelSize: 10,
        maximumScale: 10,
        silhouetteColor: Cesium.Color.WHITE,
        silhouetteSize: 0
      })); 
      rocket_entity.model = model; // it doesn`t work
      // schedule animations
      model.readyPromise.then(()=>{
        model.activeAnimations.add({
          name: 'yiji'
        });
      });
    });

I added my model created by Cesium.Model.fromGltf, and add this model to my Entity. However, it didn`t work in the scene…

I solved this problem by modelMatrix , if anyone has the same problem, these codes could help you :slight_smile:

viewer.clock.onTick.addEventListener((clock)=>{
    let curtime = viewer.clock.currentTime;
    // get entity position & oritation
    let pos = rocket_entity.position.getValue(curtime, null);
    let ori = rocket_entity.orientation.getValue(curtime, null);
    let m_pos = Cesium.Matrix4.fromTranslation(pos);
    let m_ori = Cesium.Matrix3.fromQuaternion(ori);
    Cesium.Matrix4.multiplyByMatrix3(m_pos, m_ori, m_pos);
    model.modelMatrix = m_pos;
  });
  
  viewer.scene.primitives.add(model);
  // schedule animations
  model.readyPromise.then(()=>{
    // schedule your defined animations
    model.activeAnimations.addAll()
  });

thanks :grin: