MCPcopy Create free account
hub / github.com/openai/point-e / create_camera

Function create_camera

point_e/evals/scripts/blender_script.py:115–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113
114
115def 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
123def set_camera(direction, camera_dist=2.0):

Callers 1

save_rendering_datasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected