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