ddg.visualization.blender.camera module

ddg.visualization.blender.camera.camera(name='Camera', type='PERSP', location=(0.0, 0.0, 0.0), collection=None)[source]

Add a camera.

Parameters:
namestring, default=’Camera’

Name of the created camera

typestring, default=’PERSP’

Type of the camera, ‘PERSP’, ‘ORTHO’ or ‘PANO’

locationiterable of three floats, default=(0., 0., 0.)

location of the camera

collectionbpy.types.collection, default=None

Collection to link camera to, If the parameter is not given or set to None the camera gets linked to bpy.context.scene.collection

Returns:
bpy.types.Camera
ddg.visualization.blender.camera.look_at_point(camera_bobj, point, world_up=(0, 0, 1), distance=None)[source]

Rotates camera such that it looks at the given point.

See ddg.visualization.blender.object.look_at_point for full documentation.