// Title: VTK - adjust the camera
// Author: Alexandre Dufour
// Description: This is a script for the Icy software
// that adjusts (some of) the parameters of the camera
// of an active 3D viewer
// Retrieve the active viewer
viewer = getSequence().getFirstViewer()
// assuming a 3D (VTK) viewer, retrieve the camera
camera = viewer.getCanvas().getRenderer().GetActiveCamera()
// mess around with it (see www.vtk.org/doc/nightly/html/classvtkCamera.html
camera.Azimuth(20)
camera.Roll(10)
camera.Zoom(1.05)
// refresh the canvas
viewer.getCanvas().refresh()