pynaviz.controller.GetController.add_camera#
- GetController.add_camera(camera, *, include_state=None, exclude_state=None)#
Add a camera to control.
If the camera is already registered, it only updates the include_state and exclude_state (without changing the order of the cameras).
The
include_state
andexclude_state
arguments represent the camera state fields to include/exclude, when updating this camera. This can be used to “partially link” a camera. These args are None by default (i.e. no filtering).See
camera.get_state()
for available fields. Useful state names for the perspective and orthographhic camera are: ‘x’, ‘y’, ‘z’ (or ‘position’ for all three), ‘width’, ‘height’, ‘rotation’, ‘zoom’, and ‘depth_range’.