maya.types.camera¶
Camera node types wrapper.
Classes¶
Wrapper for camera nodes. |
Module Contents¶
- class Camera(node_name)¶
Bases:
maya.core.shapenode.ShapeNodeWrapper for camera nodes.
- classmethod create(**kwargs)¶
Create a camera node.
- Args:
- **kwargs
Additional keyword arguments passed to cmds.camera.
- Returns:
- Camera
Instance of the created camera node.
- delete()¶
Override the deleted method to also delete potential parent aim/up locators.
- fit(mode='horizontal')¶
Fit the camera view to the selected objects.
- Args:
mode (str): The fit mode, either “horizontal” or “vertical”.
- set_controls(mode='camera')¶
Set the Controls for the camera.
- Args:
- mode (str): The control mode. Valid values are:
“camera”, “cameraAndAim”, “cameraAimAndUp”.
- property aim¶
Get the aim locator of the camera.
- control_modes¶
- film_fit_modes¶
- property lens¶
Get or set the lens (focal length) of the camera.
- property up¶
Get the up locator of the camera.