All Questions
7
questions
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 ...
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 ...
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....
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 ...
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:
...
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:
...
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:
...