I would like to create several cameras, and store them as follows:
a = bpy.ops.object.camera_add()
b = bpy.ops.object.camera_add()
c = bpy.ops.object.camera_add()
This command allows me to select the camera called "Camera.001"
bpy.data.objects['Camera.001'].select = True
But if my scene already contained several cameras before I created a, b & c, how would I select camera b without knowing its name? This code doesn't work:
bpy.data.objects[b].select = True
Thanks for your help. My python knowledge is minimal.