The Python module CameraUtilities provides a number of functions for working with cameras and taking thumbnails.
- SaveThumbnail() - Take a snap shot of the view and save it to a file.
- defaultFOV() - Returns the default field of view
- ProjectPointToOrthoViewPlane() - Returns a projection point of a given point onto a given ortho plane.
- defaultFocalLength() - Returns the default focal length
- fl2fov() - Converts the focal length to a field of view value
- fov2fl() - Converts the field of view to the focal length
The following messages are useful for positioning and setting up the camera:
- FIT_TO_VIEW - Moves the camera so that all the selected objects fit into the viewport.
- FIT_TO_VIEW_WITH_TARGETS - Moves the camera so that all the passed objects fit into the viewport.
- NAVIGATION_GOTO_PREVIOUS_VIEW - Moves the camera to the previous position.
- NAVIGATION_SET_CAMERA_HEIGHT - Set a new camera height.
- NAVIGATION_SET_CAMERA_POSITION - Set a new camera position and look at point.
- NAVIGATION_SET_CAMERA_ROLL - Adjusts the camera roll to the specified value.