c4d.CameraObject

Inheritance

Members

CameraObject.__init__()
Return type:c4d.CameraObject
Returns:The new camera.
CameraObject.GetProjection()

Get the camera projection.

Return type:int
Returns:The projection. See Ocamera.h for values.
CameraObject.GetFocus()

Get the focus of the camera.

Return type:float
Returns:The focus.
CameraObject.GetZoom()

Get the zoom of the camera.

Return type:float
Returns:The zoom.
CameraObject.GetOffset()

Return the offset.

Return type:c4d.Vector
Returns:The offset.
CameraObject.GetAperture()

Return the aperture width.

Return type:float
Returns:The camera’s aperture.
CameraObject.SetProjection(projection)

Set the camera projection.

Parameters:projection (int) – The projection. See Ocamera.h for values.
CameraObject.SetFocus(v)

Set the focus of the camera.

Parameters:v (float) – The focus.
CameraObject.SetZoom(zoom)

Set the zoom of the camera.

Parameters:zoom (float) – The zoom.
CameraObject.SetOffset(offset)

Set the offset.

Parameters:offset (c4d.Vector) – The offset.
CameraObject.SetAperture(v)

Set the aperture width.

Parameters:v (float) – The camera’s aperture.
CameraObject.StereoGetCameraCount(doc, bd, rd[, flags=0])

New in version R19.

Returns the number of stereoscopic cameras.

Parameters:
Return type:

int

Returns:

The number of stereoscopic cameras.

CameraObject.StereoGetCameraInfo(doc, bd, rd, n[, flags=0])

New in version R19.

Returns the information for a stereoscopic camera.

Parameters:
Return type:

dict{‘m’: c4d.Matrix, ‘off_x’: float, ‘off_y’: float, ‘name’: str}

Returns:

A dictionary (None if the function failed) with the stereo camera information:

’m’: Stereoscopic camera matrix.
’off_x’: Stereoscopic camera film X offset.
’off_y’: Stereoscopic camera film Y offset.
’name’: Stereoscopic camera name.