()
| 113 | |
| 114 | |
| 115 | def create_camera(): |
| 116 | # https://b3d.interplanety.org/en/how-to-create-camera-through-the-blender-python-api/ |
| 117 | camera_data = bpy.data.cameras.new(name="Camera") |
| 118 | camera_object = bpy.data.objects.new("Camera", camera_data) |
| 119 | bpy.context.scene.collection.objects.link(camera_object) |
| 120 | bpy.context.scene.camera = camera_object |
| 121 | |
| 122 | |
| 123 | def set_camera(direction, camera_dist=2.0): |
no outgoing calls
no test coverage detected