Linked Questions

0 votes
0 answers
2k views

How to display various info text in viewport [duplicate]

How to display various and custom info text in viewport with script and clean with another script and /or shortcut in blender 2.8+(im using 2.9). SCRIPT FOR DISPLAY ...
user avatar
3 votes
0 answers
642 views

Display text on 3d viewport [duplicate]

Is there a way to display text on the 3d viewport. (not text objects) After running a script I would like to display instructions on what to do next. I have tried this scrip and it works well.. is ...
Michael Teiniker's user avatar
8 votes
3 answers
2k views

How to avoid multiple running instances of same handler function when running it from editor?

I'm doing simple handler script that gets appended to bpy.app.handlers.frame_change_post. Every time I do a changes to it and hit Alt+P it registers itself again ...
basse's user avatar
  • 83
1 vote
1 answer
1k views

How do I display a property in the viewport without using a modal operator? [duplicate]

I want to display a property in the viewport without using a modal operator. is it possible? I found this, but I did not understand how I can use (I started with python).
logiquefloue's user avatar
5 votes
3 answers
301 views

draw 3d shape (n-gone) in 3D view

I know how to draw lines, points, 2d shape like rectangle, but how to draw shape by vertices from selected face? So basically, I need to redraw selected faces with 'gpu.state.depth_test_set("NONE&...
APEC's user avatar
  • 590
2 votes
1 answer
922 views

draw text always face the viewer in 3D view

I'd like to write a script to draw some text in 3D view, and I need it always face the viewer, how can I achieve this? update: My own answer as below.
NGE's user avatar
  • 347
4 votes
2 answers
481 views

Auto-set parameters when panel opens

I would like to set various parameters when I open a panel. By parameter I mean toggling the bounds for an object or changing object.display_type etc. Is there a python way of calling some code (...
DrDress's user avatar
  • 563
5 votes
0 answers
541 views

Removing space draw callbacks after losing the handle?

A small edit of test code from GPU Shader Module (gpu) "Mesh with Random Vertex Colors" to save the handle to the driver namespace ... ...
batFINGER's user avatar
  • 84.6k
1 vote
1 answer
389 views

Display series of 2D squares using GPU Shader Module

My addon makes measurements on objects and assign a color to the objects according to the measured value. Now I would like to display a series of stacked coloured squares in the viewport to serve as a ...
amaizel's user avatar
  • 177
1 vote
1 answer
395 views

operator error when open a new file

The operator work correctly when I call it. But report error when I open a new file. ...
X Y's user avatar
  • 6,213
2 votes
0 answers
102 views

Selection Event for F-Curve in Graph Editor

I'm trying to catch an event when an F-Curve is selected in my add-on. I've added a handler to bpy.app.handlers.depsgraph_update_post where I'm iterating through bpy.context.view_layer.depsgraph....
Dr. Pontchartrain's user avatar
0 votes
0 answers
33 views

How to lock an updating object to the screen using scripts (Blender 3.5)

I wanted to create an object that automatically updates with scripts and displays on the screen in a fixed position in Blender viewport. Kind of like how 'Objectives' in the top right of the image ...
tranade's user avatar