Skip to main content
3 of 4
added python tooltip link
Ray Mairlot
  • 29.4k
  • 12
  • 105
  • 126

The property you are looking for is 'Scene.camera'.

If you have 'python tooltips' enabled in the user preferences you can hover over the camera field in the 'Scene' tab of the 'Properties' area, to reveal the python code for this property:

enter image description here

The code to access this property for the current scene and assign it to a variable is:

obj_camera = bpy.context.scene.camera
Ray Mairlot
  • 29.4k
  • 12
  • 105
  • 126