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

Questions concerning scripting in Blender using the Python programming language. Also use this tag for questions about scripting in OSL (Open Shading Language).

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
1 vote
1 answer
327 views

Switch off the lamp in imported VRML

In my VRML file, I have lights switched off. But when I render it in blender (by using the import tool), the lights are switched on. I looked at the code: def importLamp_PointLight(node, ancestry): …
iamkhush's user avatar
  • 305
4 votes
2 answers
7k views

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

I am importing a VRML file using Blender command line. 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
1 vote
1 answer
362 views

Turn off the headers for the rendered window

I am using python script to render the image. I only want to show the IMAGE_EDITOR area( I think the rendered image gets shown in IMAGE_EDITOR area). It should show only the rendered image. So basica …
iamkhush's user avatar
  • 305