Class that defines a camera. A camera controls the display angle of
the rendered object and one is usually created for a Scene.
However, if a Scene has four viewports, then a separate camera may be
created for each viewport.
|
|
__init__(self,
scene,
viewport=0)
Initialise the camera. |
|
|
|
|
__resetCamera(self,
scene)
Repositions the camera to view the center point of the actors. |
|
|
|
|
|
|
|
|
|
Boolean
|
_isModified(self)
Return whether the Camera has been modified. |
|
|
|
|
_render(self,
scene)
Render the camera. |
|
|
|
|
azimuth(self,
angle)
Rotate the camera to the left and right. |
|
|
|
|
backView(self)
Rotate the camera to view the back of the rendered object. |
|
|
|
|
bottomView(self)
Rotate the camera to view the bottom of the rendered object. |
|
|
|
|
dolly(self,
distance)
Move the camera towards (greater than 1) the rendered object. |
|
|
|
|
elevation(self,
angle)
Rotate the camera to the top and bottom. |
|
|
|
|
isometricView(self)
Rotate the camera to view the isometric angle of the rendered object. |
|
|
|
|
leftView(self)
Rotate the camera to view the left side of the rendered object. |
|
|
|
|
parallelProjectionOff(self)
Disable camera parallel projection. |
|
|
|
|
parallelProjectionOn(self)
Enable camera parallel projection. |
|
|
|
|
rightView(self)
Rotate the camera to view the right side of the rendered object. |
|
|
|
|
roll(self,
angle)
Roll the camera to the left and right. |
|
|
|
|
setClippingRange(self,
near_clipping,
far_clipping)
Set the near and far clipping plane of the camera. |
|
|
|
|
|
|
|
setPosition(self,
position)
Set the position of the camera. |
|
|
|
|
setViewUp(self,
position)
Set the view up direction of the camera. |
|
|
|
|
topView(self)
Rotate the camera to view the top of the rendered object. |
|
|