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:
>>> bpy.context.space_data.camera = bpy.data.objects["Camera1"]
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
AttributeError: 'SpaceConsole' object has no attribute 'camera'
Any hints on how to change camera views using python?
Thanks.