c = scene.SceneCanvas(keys='interactive', show=True)
view = c.central_widget.add_view()
view.camera = 'arcball'
scene.Sphere(radius=0.5, parent=view.scene)
scene.visuals.XYZAxis(parent=view.scene)
@c.connect
def on_mouse_press(event):
print c.visual_at(event.pos)
always prints:
<ViewBox at 0x55518f0>
I am guessing this some newbie mistake on my part, what is the right way to use visual_at() for picking visuals?
Thanks.
--
You received this message because you are subscribed to the Google Groups "vispy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vispy+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@c.connect
def on_mouse_press(event):
view.interactive = False
print c.visual_at(event.pos)
view.interactive = True