How to update GLTF scene layers with DOM Elements

I want to update the gltf scene animation layers in canvas from the dom element out of the canvas.
Is there any way to do that?
Thanks in advance.
See the code below gltf.animations [3] needs to be changed with gltf.animations [2] with DOM elements.

let mixer = null
‘/models/New/4 Animation.glb’,
(gltf) =>
gltf.scene.scale.set(0.025, 0.025, 0.025)
console.log (gltf.scene )
// Animation
mixer = new THREE.AnimationMixer(gltf.scene)
const action = mixer.clipAction(gltf.animations [3])
action.setLoop( THREE.LoopRepeat,8);
action.clampWhenFinished = true;