Close

Camera Class

Helper class that maintains a 3D position and orientation for a camera and provides multiple methods for manipulating the camera's position and direction. This class is used for the viewportCamera palette component.


Members

pivottdu.Position :

Get or set the 3D point in space where the camera will pivot around or towards.

positiontdu.Position :

Get or set the 3D point in space where the camera is located.

Methods

dolly()None:

Move the camera away or towards the pivot point.

frameBounds()None:

Set the camera to frame the given bounding box.

look()None:

Pivot the camera around its position.

move3D()None:

Move the camera using data from a 3D mouse.

pan()None:

Pan the camera in a 2D plane facing the pivot point.

setTransform()None:

Set the camera view matrix.

track()None:

Move the camera up/down in the Y-Axis or left/right.

transform()None:

Get the camera view matrix.

tumble()None:

Rotate the camera around the pivot point.

walk()None:

Move the camera forward/back along in the ZX plane and rotate around its position.

TouchDesigner Build: