How to set VR camera position in Python?

Gianluca_De_Lucia
Thu, 11 May 2023 21:25:08 +0000
Development

Hi,
I am trying to develop a Python script for viewing an STL file through your VR module for 3DSlicer.
I need to set up the camera position, but as far I didn’t succeed.
I tried with:

slicer.modules.virtualreality.viewWidget().renderWindow().GetRenderers().GetItemAsObject(0).SetViewPoint(position)

but it has no effect in the viewer.

Can you help me with this?

2 posts - 2 participants