Camera Controls and Screenshots #543
-
I've searched the discussions and can't seem to find much on this topic but what methods might I call to access camera controls such as Move Speed, Rotate Speed, and Zoom Speed in a Trame application that is remote rendered using a Paraview instance on the backend? How might I accessing these 3 camera controls (move speed, rotate speed, and zoom speed) so that I can add VSliders to adjust them? Also, once I've established a desired camera angle, are there ready-baked methods for easily taking a screenshot of the model in the window to save it as a .jpg or .png and wiring this functionality to say a VButton? Or, will I need to write some custom Javascript for this or tap into an existing API such as Chrome's Broswser API for something like captureVisibleTab ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
I guess the question would be how you set those in ParaView or in VTK from Python. So not a trame question. For capturing the image you should be using VTK/ParaView API and then provide a mechanism to download that file to the client. |
Beta Was this translation helpful? Give feedback.
Actually with trame 3.6+ you should be able to just do