You can access all the camera parameters from the script. Use the following code to get the camera object:

var c =;

Camera object allows scripts to change angles, fov, distance, aspect and the central point of rotation. Here’s how to get and set angles:

var c =;

// read rotation angles
print("camera rotation angles: %1, %2", c.hangle, c.vangle);

// change rotation angles
c.setAngles(10, 20);
print("new camera rotation angles: %1, %2", c.hangle, c.vangle);

The other properties are even simpler:

var c =;

c.distance = 30;
c.aspect = 4.0/3.0;
c.fov = 45;

// set the rotation center = vec3(0, 0, 1);