@james I saw that you can get a list of animation ID's in the current scene and that you can trigger them individually. Is there a way to get a callback when clicking on a specific object or material inside the viewer?

in this example since only an instance id is returned of a geometry node , i did a sneaky lookup to get to the matrix transform node. That been said The lookup storage is probably going to change at some point. I found issues with my tool and shortest link lookups when been used on animated rigs. anyway all the logic is there im sure the OP can make sense of it.

@bartv the animation system desperately needs some love. You cant trigger a single animation at all. The looping system is not on a per animation basis. Also porblems with the retrurn timelapsed/ end of frame ..end of animation.

@jamesno the issues is the current cycle mode system, you cant trigger just one animation have it play and stop when it is finished. this is because your looping mode is not applicable to each individual animation but rather to the animation list itself.

the developers need to look at the legacy animation system of unity for an idea of structure . You have an animation component and you have animation clips. Animation clips have there own looping mode. So it is possible to set some to play only once and at the same time for other clips you can tell them them to loop. You assign the animation clip to the animation component. You control the animation clip though the animation component but it respects the local looping mode of each clip.

you guys are half way there since the animation list resembles the animation component. You just need to add a looping mode to each clip.

Also for seekTo in the viewer you can pause and drag the slider to the very end and you end up on the last keyframe. Via the api if you set the seekto to the duration , it loops back on itself, it does not stop at the last keyframe.