Skip to main content

All Questions

Tagged with
28 votes
1 answer
31k views

Blender 2.8 API, python, set active object

I'm trying to amend an addon that I made for Blender 2.7X to work with Blender 2.80. The problem is with bpy.context.scene.objects.active = some_object This is ...
Georges D's user avatar
  • 5,042
22 votes
5 answers
22k views

How to set cursor location, pivot_point in script?

I am trying to set a cursor location and pivot point with bpy.types.SpaceView3D.pivot_point='CURSOR' bpy.types.SpaceView3D.cursor_location = (0.0, 0.0, 0.0) and ...
dimus's user avatar
  • 3,312
18 votes
2 answers
13k views

How to automatically fit the camera to objects in the view?

I'm using blender to render avatar and avatar accessories on a website, however there is a problem, when a hat, or accessory is made a bit large, the it doesn't fit in the viewport, is there anyway to ...
slixxed's user avatar
  • 183
16 votes
3 answers
17k views

Update viewport while running script

I have a script, which creates multiple objects through a loop. However, the script freezes the viewport until it is done. Instead, I would like every object to be seen in the viewport one by one as ...
dwitvliet's user avatar
  • 409
16 votes
2 answers
5k views

How can I navigate the viewport using Python?

Normally, with most actions that you want to script with Python there is a pop-up tooltip that shows you the function that you want to use. However, for viewport navigation there are no pop-ups, you ...
fouric's user avatar
  • 3,251
16 votes
1 answer
5k views

python get "image" of 3D view for streaming / realtime EEVEE rendering

[SEE Edit #7 at the bottom for official, final question] I know its possible to take a screenshot with python of a particular window (take screenshots programmatically in bge?), but is there a better ...
B''H Bi'ezras -- Boruch Hashem's user avatar
13 votes
4 answers
19k views

How to toggle visibible / selectable / renderable for multiple objects?

For quite long time, I was looking for a faster way to toggle (or toggle off) visible / selectable and renderable for many objects, as illustrated below: I know we can do the relatively quick select ...
Leon Cheung's user avatar
  • 27.9k
13 votes
1 answer
684 views

Have second window with different perspective open only when a second monitor is connected?

I have Blender on my laptop, into which I sometimes plug an external monitor, and set up some different regions to make my workflow smoother/easier. When I save and close my project, the multiple ...
Questionmark's user avatar
12 votes
2 answers
1k views

BGE. Is it possible to create transparent plane with blur filter?

17 09 2015 here is blend to test: https://dl.dropboxusercontent.com/s/cwpyem6zve6r2u4/blur5.blend I'm still trying to figure out how to add blur filter to plane to make under plane objects all ...
Privacy Goth's user avatar
11 votes
3 answers
5k views

Changing viewport shading with python

I am trying to change the viewport shading to "RENDERED" with python, but I can't seem to figure out how. It seems ...
BlendingJake's user avatar
  • 2,557
10 votes
2 answers
14k views

How to get mouse position in a window with Python?

I want to detect if the mouse is in certain area of the 3d View, so I can display a custom menu when it will be in the left top corner, over the view name ("User Persp" etc).
PLyczkowski's user avatar
10 votes
2 answers
2k views

Copy framebuffer of 3D View into custom frame buffer

General question: Is there a reliable way to directly access the OpenGL framebuffer of a View3D for copying? (Please see the end of the post for more detailed questions) I need a very fast way to copy ...
reg.cs's user avatar
  • 488
9 votes
2 answers
3k views

No redraw after assigning new vertex position with python

I'm trying to write a new operator which modifies my geometry in some way, but I'm struggling with vertex manipulation. I can get the selected vertices fine and also print the individual components. ...
Miguellissimo's user avatar
9 votes
1 answer
1k views

Points only camera calibration?

1) I have a photo of an object, taken at a specific orientation and position of my camera. 2) I also have a 3D model of that same object. I need to be able to calibrate the camera in Blender (or some ...
10caret100's user avatar
7 votes
1 answer
2k views

How to select only visible vertices using python API?

I'd like to select only the visible vertices (from the camera), using python interface. I use bpy.types.SpaceView3D.use_occlude_geometry = True to limit the ...
Anastasia's user avatar

15 30 50 per page
1
2 3 4 5
16