3 ms·
The 3D visualization software ParaView allows you to capture all mouse and keyboard events by logging each event as its equivalent in their Python API [0]. For
by dlivingston 6y ago
The 3D visualization software ParaView allows you to capture all mouse and keyboard events by logging each event as its equivalent in their Python API [0].
For example, say that I’m visualizing a 3D scene. Clicking and dragging in the viewfinder changes the perspective of the camera, so this is recorded in the log as something like:
camera.Roll(45)
camera.Yaw(45)
Render()
If more GUI apps had exposed APIs, this would be a trivial feature to add.
[0]: https://www.paraview.org/Wiki/ParaView_and_Python https://www.paraview.org/Wiki/ParaView_and_Python