jupyter-widgets / pythreejs

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

Documentation on Picker class and attributes #29

Closed nlooije closed 6 years ago

nlooije commented 9 years ago

I have been playing around with getting a simple gui going with PyThreeJS and I am really liking your work.

So far I got most things working, but while trying out some Pickers I ran into the problem that i don't know exactly how to use certain attributes of the Picker. For example, event takes a Unicode string and from the example I know it can take click, dblclick and mousemove, but i don't know any others. If i want a 'right-click' event, I wouldn't know where to look for the correct Unicode string.

Similarly i don't know how to use the root or picked attributes. For example, can root be any Mesh object? but i don't know how picked is used.

I tried looking at the ThreeJS documentation but as far as i can see Picker is a type of raycasting specific to the implementation of PyThreeJS or am i wrong? Is there some documentation i could refer to which explains the classes and their attributes (to some extent)?

nlooije commented 9 years ago

Nevermind about the event string, it is the same as the DOM events. However, my question on root, picked and many of the other attributes still stands.