Here is my code… I can’t imagine what’s causing the error…
var modelCharacterURL = “Models/CuteAlienPlayer/scene.gltf”;
var modelCharacter;
var loader = new GLTFLoader();
loader.load( modelCharacterURL, gltf => {
modelCharacter = gltf.scene;
scene.add(modelCharacter);
// a second smaller model
const clip = gltf.animations;
mixer = new THREE.AnimationMixer(modelCharacter);
const floatingClip = THREE.AnimationClip.findByName(clip , 'Armature|ArmatureAction_Object_6');
const floatingAction = mixer.clipAction(floatingClip);
floatingAction.play();
} );
The error that comes up says that "Play is not defined’: