jupyter-widgets / pythreejs

A Jupyter - Three.js bridge
https://pythreejs.readthedocs.io
Other
936 stars 187 forks source link

How do I change the playback speed of an animation? #241

Closed subTropic closed 5 years ago

subTropic commented 5 years ago

I am animating a series of spheres in pythreejs with AnimationClip data generated from animation data exported from Maya. This mostly works as expected, however in jupyter lab the animation playback speed is very slow. I have tried setting the animationAction and Animation Mixer timescale to large values but it does not have any effect on animation playback speed. I can orbit the camera fine in jupyter lab so I assume it is not a performance issue.

Is there a way to see the fps or increase playback speed?

subTropic commented 5 years ago

my mistake it does work, typo of .timescale vs .timeScale

subTropic commented 5 years ago

it actually looks like the timescale correlates to fps, so my animation in maya was at 24fps, if I set AnimationAction.timeScale = 24 the playback speed matches

vidartf commented 5 years ago

Thanks for reporting back your resolution for future reference :+1: