All Questions
61
questions
0
votes
0
answers
32
views
How can I prevent operator from blocking Blender Interactions during execution?
I'm new to Blender Python programming, and for a personal project, I'm experimenting with creating a Blender Python addon. I aim to execute an asynchronous GET request when I select a button in a ...
3
votes
1
answer
82
views
How can I pass an object (like a bmesh) to an operator or should I not do that?
I have an operator that creates a certain mesh but I want to keep things modular so I separated each operation into its own operator. Like for example, I have an operator that removes vertices that ...
1
vote
1
answer
24
views
Operator in import category working but showing as invalid syntax when accessing bpy.ops.import
I have several operators that import different file types like this example:
...
1
vote
0
answers
52
views
Operator for 2D button gizmo is not called
I have a simple GIZMO_GT_button_2d that should invoke an operator when clicked upon but this is not happening. I can call the operator directly with ...
1
vote
0
answers
34
views
Created Bezier Curve doesn't link to scene
I would like to start by expressing my gratitude to this community for providing solutions to programming problems related to BPY.
I usually find answers here without submitting my question, but this ...
1
vote
0
answers
55
views
Unable to change the object selection in my operator from Adjust Last Operation
I am building an add-on and here is a skeleton of the same with the relevant parts (it is fully functional, you can just copy-paste the code given below and test it yourself). I am running into issues ...
1
vote
0
answers
63
views
How to run my operator on a timer or continuously?
I have a device connected to the computer over serial. I have managed to read the value from it using an operator executed by a button press, but now, I want my Blender plugin to poll for a value on ...
1
vote
1
answer
145
views
How can I apply a preset to an operator and execute it using Python?
I want to use Python to run an add-on
Something like:
import bpy
bpy.ops.export_mesh.paper_model()
But I need to change some settings before I run the add-on. I ...
0
votes
0
answers
153
views
Blender 3.4.1 overlay addon
I am learning how to create extensions and I am stuck. In a text overlay I want to update the time every second with a modal operator. The script is running in principle, but no text is displayed on ...
1
vote
0
answers
127
views
showing progress to the user within blocking code
The goal is to give feedback to the user when running long blocking tasks in an addon. There is already a question with great answers from 9 years ago that should be mentioned:
How to show to the user ...
2
votes
1
answer
440
views
How to show self.report of operator called from another operator?
When I call an existing operator in the execute function of another operator I have created, the self.report from the existing operator is not triggered. Is there a way to enable this, or access the ...
0
votes
1
answer
107
views
1
vote
0
answers
133
views
How to use bpy.ops.object.transfer_mode() API?
I'm a beginner :(
The purpose of these codes is to make the shortcut "alt+q" have different Operators under different "C.object.types",
but "bpy.ops.object.transfer_mode" ...
0
votes
1
answer
104
views
Align Active Object to Curve based on Eyedropper
FYI, this is based on my old question in previous post Is it possible to use single pointer to assign on multiple modifers' Pointer Properties at once?. Now, for my learning and experiement purpose, I ...
0
votes
1
answer
770
views
Blender Python: display dropdown enum using bpy.context.active_object.data.shape_keys.key_blocks.items()
My Goal is to have 4 dropdown lists of shapekeys in a 3D view panel, allow the user to select 1 shapekey in each dropdown, and then reference those user-selected shapekeys in scripting that modifies ...