set camera active how ?

if there are several cameras in a scene
how do you set one specific camera name the active camera for rendering ?

thanks

Hi Ricky,


import bpy
context = bpy.context
scene  = context.scene

camera_obj = scene.objects.get("Camera")
scene.camera = camera_obj

i’ll add that one in my note file

thanks