Hello
I’m struggling a little with a task of appending cameras to scene from A to B. > Code
link = False
newCameras = []
print("Adding new cams")
with bpy.data.libraries.load(path, link=link) as (data_from, data_to):
for camera in data_from.cameras:
newCameras.append(camera)
data_to.cameras = newCameras
print(newCameras)
for camera in newCameras:
bpy.context.scene.collection.objects.link(camera)
I get:
bpy.context.scene.collection.objects.link(camera)
TypeError: CollectionObjects.link(): error with argument 1, "object" - Function.object expected a Object type, not Camera
Any help would be great.
Thanks !