jupyter-widgets / pythreejs

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

Animation Example #33

Closed oliverlee closed 8 years ago

oliverlee commented 9 years ago

Listed in the 'Examples to do' section is 'animate something through space'. Can you provide this example first, or suggestions on how to interact with the render loop so that animation can be done completely from the client side?

jasongrout commented 9 years ago

In the examples to do, I was thinking of animating from the python side (so basically change coordinates of an object, like is done in one of the first examples).

If you wanted to affect the pythreejs state totally on the client side, it may be best to use the widget infrastructure and jslink to hook things that will change state (on the client side) with pythreejs state. As an example, if you write a widget (python and javascript) that sweeps through a range of values, totally on the client side, then you can hook the values to the state of the pythreejs object.

oliverlee commented 9 years ago

Thanks