Skip to main content

All Questions

Tagged with
0 votes
1 answer
119 views

region_3d.view_distance not updating until next modal event

The code below runs a modal operator that gets the region_3d.view_distance and prints it out. If you run it you'll notice that the ...
Psyonic's user avatar
  • 2,339
1 vote
2 answers
168 views

Alternative to modal operators (blocked autosave)?

I am coding an addon, where a specific feature draws a small 2D overlay into the viewport via the draw handlers. While this works fine, I want this overlay to react when the user hovers the mouse over ...
reg.cs's user avatar
  • 488
1 vote
1 answer
232 views

Blender Python operator to center view (ALT+MIDDLEMOUSE shortcut like)

I am trying to center the view to the mouse point in a Python modal operator. However, I just couldn't find the right operator in the API documentation. https://docs.blender.org/api/current/bpy.ops....
user299831's user avatar
0 votes
0 answers
181 views

How to run Outliner operations for 3D view selection?

How can I run an outliner operation based on the user's 3D View objects selection? Technically: how does the ...
Jorge Frias's user avatar
1 vote
0 answers
86 views

How do you execute bpy operations in the python console that requires you to hover your mouse over the 3D view port?

I just want to enter bpy.ops.view3d.snap_cursor_to_center() in my python console just to see how it works. I am getting the error: ...
Inkplay_'s user avatar
  • 737
1 vote
1 answer
287 views

blf + bgl text flickering

I'm using blf in a modal operator to draw help text on the 3D viewport. Here's a snippet: ...
z0r's user avatar
  • 877
1 vote
1 answer
278 views

Align view in quadview mode

I want to align the 3D view like the menu item "View/Align View/Center Cursor and View All" does it, but with Python. If in "Scripting" layout this works fine with the following code: ...
frisee's user avatar
  • 487