All Questions
145
questions
57
votes
2
answers
61k
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 ...
27
votes
1
answer
14k
views
Create an interface which is similar to the material list box
How can I make a Interface which is similar to the Material-Interface within Blender via Python?
It should look like these. Could you guide me to the right direction? I don't think it's in bpy.ops, ...
15
votes
1
answer
12k
views
How to create a Folder/File Dialog?
So I need to allow the user of my script to choose a directory that contains images, and then run my script on each image. I already have my script made here. I looked at this question already, but ...
13
votes
1
answer
12k
views
How to call a confirmation dialog box?
I have a button in my menu named "New File" as shown:
and I want when I click on the "New File" button to imitate what the Blender File->New does, where a check message box appear first confirming ...
10
votes
2
answers
4k
views
Object selection box with eyedropper
How to add an eyedropper functionality to prop_search in my addon?
...
12
votes
1
answer
2k
views
How to get one UIList to control the contents of another UIList?
I have two dynamic lists. One is for strings and another one for objects. When the string changes I need the other list to show the objects assigned to the string in the first list. So I would need ...
6
votes
2
answers
6k
views
How do a create a foldout UI panel?
I have an add-on with rather a lot of UI options and am trying to find a way to clean it up so that not all the options need to be shown at once. I've noticed that some of the default tools have ...
10
votes
5
answers
10k
views
Add Custom Menu at Specific Location in the Header
Blender has a built in template for adding a custom menu to the main header (INFO_HT_header). This can be found by going into the text editor under templates->Python->UI Menu.
Can I relocate this ...
4
votes
2
answers
836
views
Is there a workaround for the known bug in dynamic EnumProperty?
So I was making an addon with a dynamic EnumProperty and apparently ran into a known bug when trying to use Expand = True for this property in the panel. Although ...
2
votes
2
answers
2k
views
Add toggle hotkey to custom checkbox
I have a self made checkbox in a script. Now I want to create a hotkey in the Input manager to toggle it.
What I have done so far is to create a keymap item with ...
9
votes
2
answers
7k
views
New window with Python API?
How to create a new window with a certain dimensions (for example 40% of screen size) using Python API?
Functionality-wise similar to File > User Preferences — a new window shows up with User ...
8
votes
2
answers
5k
views
How to call invoke_popup?
I just can't figure out how to create a custom popup which can receive data etc. What I want to do is let the user select one of the currently selected UV-layers and just hand that back to me. So I ...
5
votes
2
answers
11k
views
How can I add a checkbox in the tools UI?
So I want to add a checkbox to the UV/Image Editor tools UI
This is currently my code, You can see where I have commented "#Checkbox Here" and later on in the UpdateOperator I want to check whether ...
5
votes
1
answer
6k
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 ...
24
votes
2
answers
6k
views
Blender UI Multithreading Progressbar
The following question might've been asked several times, but I've found no satisfactory answer.
Short question:
How can I show progress of background task in Blender UI?
Explanation:
I have a ...