# Can't find the right clip from a model

**URL:** <https://discourse.threejs.org/t/cant-find-the-right-clip-from-a-model/29027>\
**Category:** Questions\
**Tags:** animation\
**Created:** [August 18, 2021, 10:02am UTC](https://discourse.threejs.org/t/cant-find-the-right-clip-from-a-model/29027 "2021-08-18T10:02:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![samuel\_potter](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/samuel_potter/32/17192_2.png) [@samuel\_potter](https://discourse.threejs.org/u/samuel_potter)\
**Post date:** [August 18, 2021, 10:02am UTC](https://discourse.threejs.org/t/cant-find-the-right-clip-from-a-model/29027/1 "2021-08-18T10:02:27Z")

</div>

Hello,  
I’m trying to execute the animation of a model found on internet.  
The expected animation is to have all the fans running. But when I tried to play the animation, it’s just the computer rotating on the X abscissa. I thought maybe its animations are somewhere else, so I logged the animation, and there is an array of tracks with all the fans in it. Being new in threejs I was wondering if anyone could help me on that.

```javascript
const { actions } = useAnimations(animations, group)
  useEffect(() => {
       actions['Task 001'].play()
})

```

This is the model I use.  
[Computer model](https://sketchfab.com/3d-models/dream-computer-setup-82f78bbaf2d34f01af854a52151dbf49)

---

<div class="post-metadata">

**Author:** ![mjurczyk](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mjurczyk/32/10995_2.png) [@mjurczyk](https://discourse.threejs.org/u/mjurczyk)\
**Post date:** [August 18, 2021, 10:39am UTC](https://discourse.threejs.org/t/cant-find-the-right-clip-from-a-model/29027/2 "2021-08-18T10:39:57Z")

</div>

Running the model (auto-converted `.gltf`) on [gltf-viewer](https://gltf-viewer.donmccurdy.com/) seems to work just fine. 🤔

Are you sure you don’t apply the rotation yourself? Could you share a codepen / demo replicating the issue?

---

<div class="post-metadata">

**Author:** ![samuel\_potter](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/samuel_potter/32/17192_2.png) [@samuel\_potter](https://discourse.threejs.org/u/samuel_potter)\
**Post date:** [August 18, 2021, 11:17am UTC](https://discourse.threejs.org/t/cant-find-the-right-clip-from-a-model/29027/3 "2021-08-18T11:17:11Z")

</div>

Yes I know, this is why I found that weird.  
Yes I’m sure, I just loaded the model and use the play method without touching anything else.  
I don’t think it’s possile to load 3D model in codepen. But here is what I’ve done

```javascript
export const Introduction = () => {
    return (
        <>
            <Canvas className="bg-[#141B32]" style={{height: "100vh"}}>
                <OrbitControls />
                <directionalLight intensity={0.5} />
                <ambientLight intensity={2} />
                <Suspense fallback={null} >
                    <Model />
                </Suspense>
            </Canvas>
            <Loader />
        </>
    )
}

```

and in the model, which is 4000 lines, I just made

```javascript
const group = useRef()
  const { nodes, materials, animations } = useGLTF('/scene.gltf')
  const { actions, names } = useAnimations(animations, group)
  useEffect(() => {
    console.log(actions[names].play())
})

```
