This documentation is for the free plugin Py4D in CINEMA 4D R11.5 and not for the C4DSDK of Python in CINEMA 4D R12. For R12, please visit PluginCafe.com

c4d.CameraObject – a camera object class

../../../../../../../_images/camera.png
class c4d.CameraObject

// get methods

// set methods

SuperClass

BaseObject

Methods

static CameraObject.__init__()
Return type:CameraObject
Returns:The new object or None, if allocation failed.
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: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.

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

Set the focus of the camera.

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

Set the zoom of the camera.

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

Set the offset.

Parameter:offset (Vector) – The offset.
CameraObject.SetAperture(v)

Set the aperture width.

Parameter:v (float) – The camera’s aperture.

Table Of Contents

This Page