vedo
vedo copied to clipboard
Clicking and dragging meshes
Hi Marco,
I was wondering if there was a way to enable the panning of meshes (click and drag) withing a Plotter. I know that when you press 'a', the interactor style changes, and then this enables you to hold shift and drag objects. Is there a way to make it so that this is what happens, without having to press 'a' and then also hold shift?
Ideally, I would like to have a button that acts as a switch between style 1 (default) to style 2 (left click and drag results in panning of meshes)
Hi @DanKrsi yes - it's in interactor_modes submodule check out the example in: https://github.com/marcomusy/vedo/blob/master/examples/basic/interaction_modes1.py
Hi Marco,
Thanks for this, but I am looking to pan (translate) the individual meshes, not looking to pan the camera. In the same way that you do when you press 'a', then hold shift + click drag.
Thanks
You can start with that interactor with eg:
show(meshes, axes=1, mode="TrackballActor")