I’m looking to trigger capture the Camera-Position in the VivePro2-Headset on the Push of a Controller-Button to export it to file/Desktop.
Is there already a way to do this? I haven’t found one so far.
I was therefore thinking of writing a python script for it, but hit a snag of how to listen for the Controller-button. Do you have any suggestions on how to do that or where to look?
There is already a mechanism to save camera pose in the XRInterface plugin, by pressing the “SavePose” button. It even saves them in the statefile, you can find them in the UI and reload them easily using the trigger on the controller.
Yes, I did find this mechanism and I have been using it.
I didn’t describe what I am looking for well.
I would like to save the camera pose in VR, be able to load the pose with both the camera in VR and in the desktop application and create a picture of the in-headset view. Ideally, just pressing one button.
With the save pose mechanism it is possible to save the pose in VR and load it there.
I haven’t found a mechanism to load the poses on the desktop for quick review or when no VR-HMD is on hand.
I have tried to use the export as skybox for the picture, but I believe the orientation of the skybox is along the grid and not tied to the view direction of the camera. Therefore, I am currently using the Headset-mechanisms (or screen capture over the desktop screen with a window of the inHMD view), but it’s rather tedious.
I have also found that I tend to move my head around when working with the navigation panel, so the focal point of my poses tend to by somewhat off.