How do I change camera views using python? I want to change camera views using python.  I changed it using the gui, and then go to the "info" window log to see what
the python commands are for that.  But when I cut+paste that into the "Python Console", I get this error:

&gt;&gt;&gt; bpy.context.space_data.camera = bpy.data.objects["Camera1"]
Traceback (most recent call last):
  File "&lt;blender_console&gt;", line 1, in &lt;module&gt;
AttributeError: 'SpaceConsole' object has no attribute 'camera'


Any hints on how to change camera views using python?

Thanks.
You can set the camera in the current scene by using bpy.context.scene.camera. So your script should be:

bpy.context.scene.camera = bpy.context.scene.objects["Camera1"]


or

bpy.context.scene.camera = bpy.data.objects["Camera1"]