Linked Questions

56 votes
2 answers
58k views

How to create a custom UI?

I was watching this video on making a custom UI tab using Python, and in the line from bpy.types import Menu, Panel, UIList, I see the names of objects that look ...
DragonautX's user avatar
  • 1,306
5 votes
1 answer
5k views

How to create a button on the n-panel?

I would like to make a custom button on the N-panel. I already went through blender's templates and amended the ui button script to 2.8 but I don't understand where and how I should implement my code ...
four two's user avatar
  • 980
2 votes
2 answers
5k views

What do the modal operators do?

What do the modal operators do? They are found below the 'Border Select.' Why are there so many of them? If I assigned a HotKey to 'Border Select' as shown in the screenshot, what values should I ...
R_M_S's user avatar
  • 91
4 votes
2 answers
1k views

Force a Blender operator to always start with default values

I'm writing an operator for which it is crucial that every time it gets called all the properties are set to their default values. The ops.object.delete has 1 param. use_global. It is always false, ...
Frederik Steinmetz's user avatar
0 votes
3 answers
3k views

How to assign a material to a mesh object with python?

Creating Materials using python is easy and it has a lot of answers on StackExchange. Now what I want to ask is - If I want that the material should only be added if the object (on which material ...
Rakesh choudhary's user avatar
3 votes
1 answer
2k views

How do I initiate a render from Python but still show progress bar and UI updates?

When I run bpy.ops.render.render(write_still=True) from Python on large files, Blender goes into "(Not responding)" mode and the CPU spins like crazy for a few ...
Chris Conlan's user avatar
2 votes
2 answers
1k views

Poll function for a BoolProperty

I'd like to add a poll function to my BoolProperty, but I don't understand how it works. Is it similar to the poll function of an operator? What represents the "object" argument of this function? ...
pistiwique's user avatar
  • 1,106
1 vote
1 answer
2k views

How to create and export a custom file using python?

I'm trying to make and export a file. I have a string which is basically the file content and I'd like to save this as a .dat file. So I need the user to click a button and the file explorer to open ...
Paulo Kim's user avatar
3 votes
2 answers
563 views

Re-entrant Operators : Rebuilding a Mesh after reselection

Question : How would one go about making an Add Mesh operator re-entrant ? There are three use cases for this that I can see (1) You want to rebuild the underlying mesh for an object where you have a ...
Carel's user avatar
  • 257
-1 votes
2 answers
1k views

Get value of FloatProperty

Probably this is a very newbie question, but I am having issues trying to access the value of a FloatProperty. I have something like: ...
jjcasmar's user avatar
  • 329
0 votes
1 answer
576 views

How do you know if a collection has been clicked on by the user using Python?

How can I create a panel that allows me to add custom properties (StringProperty, BoolProperty, etc) for Collections? I want to ...
roxlu's user avatar
  • 35
1 vote
0 answers
740 views

Blender's Simple Operator Example not working

I am just learning programming and am having difficulty running this example code from Blender's official python documentation on the quick start page: https://docs.blender.org/api/2.93/...
Zak Nelson's user avatar
1 vote
1 answer
276 views

How to delete a material from a duplicated object? Sanity Check

I must be misunderstanding something. I really need a sanity check. I'm trying to duplicate the active object, then delete all the material slots from it without affecting the original. ==== EDIT===...
Robert Cornwall's user avatar
1 vote
1 answer
416 views

Invoke the File Browser inside an Add-On but wait with the rest of the script until it's closed

I'm writing an Add-on in which I create a new Collection and then invoke the ImportHelper to load an FBX file. After that I would like to process the loaded data. My Problem is, that my script doesn't ...
Steve's user avatar
  • 446
1 vote
0 answers
436 views

Execute function before draw menu

I am traying to make a popup menu that will add a modifier if the object has none and then draw the menu, or just draw it if the modifier is already on it. But i am not sure how to go about it, the ...
Udjani's user avatar
  • 117

15 30 50 per page