Stereoscopic settings

Hi, is there a way of changing the stereoscopic settings when viewing a 3D render in openGL mode? This would probably include changing the effective eye separation (or convergance angle), possibly setting the screen size and width. changing is the model zooms in Z or just scales in size at the same Z position.

Many thanks
Phil

You can modify the VTK camera parameters directly.

view = layoutManager.threeDWidget(0).threeDView()
renderWindow = view.renderWindow()
renderers = renderWindow.GetRenderers()
renderer = renderers.GetItemAsObject(0)
camera = cameraNode.GetCamera()
camera.SetEyeAngle(15)

See more examples in the Slicer script repository.