Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 5473

The camera is an object which defines a point of view in 3D space for the context of rendering. The camera also has settings for depth of field (DoF) and other effects/settings real cameras have.

5 votes
1 answer
1k views

Need to get a 360 view of the object using cameras

I need to render an object and get a 360 degree view. I plan to do this by taking pictures from atleast 36 cameras, at 10 degree separation to give a 360 degree view. Since I have several objects, I …
iamkhush's user avatar
  • 305
4 votes

Incorrect Context error when calling bpy.ops.view3d.object_as_camera()

So it turns out - I had to add area.spaces.active.region_3d.view_perspective = 'CAMERA' this in the loop. Got my answer on http://blenderartists.org/. Just sharing for the community. …
iamkhush's user avatar
  • 305
2 votes
1 answer
2k views

Incorrect Context error when calling bpy.ops.view3d.object_as_camera()

But before that I need to select active object as camera, which I am doing by calling bpy.ops.view3d.object_as_camera() . … However I am getting the wicked error Operator bpy.ops.view3d.object_as_camera.poll() failed, context is incorrect Now when I do the following in Python Console in blender , the active camera is selected …
iamkhush's user avatar
  • 305
1 vote

How do I change the focal length of a camera with python?

Ok, I think I got it .. We can get the focal length by using bpy.data.cameras.values()[0].lens. We can set this value as well.
iamkhush's user avatar
  • 305
4 votes
2 answers
7k views

How do I change the focal length of a camera with python?

I need to change the focal length of the camera using the command line. How can I do that? I cannot find Python api for this. Thanks. …
iamkhush's user avatar
  • 305