Linked Questions

31
votes
2answers
26k 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 ...
6
votes
2answers
1k views

Search enum list

Is there a way to add search functionality to EnumProperty in my add-on, similar to material search? Or maybe there is another property with search functionality ...
4
votes
1answer
1k views

index out of range for UIList causes panel crash

I am writing an addon that displays the mesh modifiers in a listbox, with the settings below the box. The issue I have is with the active index for the listbox - I'm using a custom property because ...
2
votes
1answer
2k views

How to create a simple list in the UI with Python API that would display data from Python?

I've been writing scripts for Maya and 3Ds Max, now I'm trying to learn Python API of Blender. So I'm not a beginner in scripting for such applications, but I'm a total beginner in scripting for ...
1
vote
1answer
211 views

How to populate UIlist with certain collections?

I'm trying to understand how to populate an UIList with certain collections based on their name. I am trying to extend this very useful answer by @batFINGER In ...
1
vote
1answer
60 views

How to view all autocomplete options?

I wanted to view all the stuff inside bpy.types so I used the autocomplete inside the python console. However the results are cut off. How can I get the full list? I'm trying to find a method so I can ...
1
vote
1answer
85 views

Is there a way to display a multi-lines message in panel / popup?

My add-on performs diverse measurements on an arbitrary number of selected objects. The measurements results are printed to the console and saved to drive as tabulated data and ...
1
vote
1answer
109 views

What is the best way for me to change multiple paths or values on an object with multiple variables for each one?

I am trying to make an addon that will randomize path variables. The system I have works by adding and subtracting boxes that contain an input for a data path. It works fine except for one issue. ...
1
vote
1answer
131 views

Python: template_ID()-like UI for PropertyGroup

For a Blender add-on I am trying to create an UI that let's the user choose from a list of existing instances of a PropertyGroup stored in a CollectionProperty create new instances of that ...
1
vote
1answer
368 views

Documentation for CollectionProperty (CRUD methods)

I cannot find any documentation for the existing CollectionProperty methods. Regardings properties, generally i find .../bpy.props.html helpful, but it doesn't ...
1
vote
1answer
144 views

move / reorder UIList items don't work

I'm using the template of UIList in this answer but the code to move up or down the items in the UIList don't work... do you know the reason? ...
1
vote
1answer
791 views

how do I build a list-multi-select widget using a box with operators?

What I'm trying to do is write a ui for an export script to export multiple selected actions of the selected armature(s) to multiple files. I can't seem to find an example to define an operator for ...
0
votes
1answer
58 views

How to store a list or an array with python so its global available?

I think I know this is a basic question but I dont got the connection between values inside a class and outside. I have an Array with string values defined in a OperatorClass and I can use it inside ...
0
votes
1answer
132 views

Displaying text inside an addon Panel

This question is not about displaying text-like objects or mesh in the 3D viewport but rather about displaying plain text in a panel created by an Addon. I have a panel with two rows. On the first ...
0
votes
1answer
30 views

Can a EnumProperty have dynamic name?

I have defined a custom Enum property for the Material type: ...
0
votes
1answer
389 views

How to populate UIList with all material slot in scene? 2.8

I make that script (Copy a piece from template UIList) Now i can draw My box with inside the active object material but i want to populate that with all material in scene, i not undertand , how to. ...
0
votes
1answer
111 views

How do you add material references to a UIList

Hey I need help adding materials to a UIList, I have used this answer as a guide: https://blender.stackexchange.com/a/30446/51645 Here is the functionality I need, I need to be able to click the add ...
0
votes
1answer
604 views

populate a dropdown (or prop_search) with a string list

I want the user to be able to select a string from a list of possible options. The value stored in the extra properties data must be the selected string (not an integer id as with ...
3
votes
0answers
158 views

How to create an operator to show and select multiple items? [duplicate]

I want to create an Add-on with Python. It should contain an operator that shows several string entries. Each of them can be selected/deselected individually. This is pretty much what happens with ...
1
vote
0answers
13 views

UI Dynamic Datablock List [duplicate]

How do I create an element like this in a UI? Also, is it possible to add custom datablocks to the list? By that, I mean create datablocks that are not the ones that come with Blender by default (...
1
vote
0answers
93 views

Blender Python - How to create path and folder structure from within Blender

I have some experience in programming, so I know the basics of Python in Blender. I know how to dig through the Blender Python Refernce but it is very much to look around. I know I need to import ...
1
vote
0answers
43 views

How to make custom list panel like “Vertex Groups” list

Does anybody know how to create panel like this? (I am new to programming.) Items of this list should have several data points ...
1
vote
0answers
37 views

Creation of lists in blender python [duplicate]

I'm trying to create a list box on a 3d view panel but I can't seem to find the correct control in the list of properties that have an associated UI or in any other related documentation. What I'd ...
1
vote
0answers
54 views

Making a custom list of Kinect Data for later assignment

I am adding Kinect data capture into a MakeHuman Blender add-in, through a small .dll I have written. I am getting data (JSON text) fine, which I hope is close to being correct. The REALLY great ...
0
votes
0answers
291 views

API: Displaying a dropdown list [duplicate]

I'm currently developing a blender plugin, and need to be able to show drop down lists where users can choose a material and object from the project, but I can't work out how to do it. Does anyone ...
0
votes
0answers
1k views

How do I load list content into a template_list?

I want to list some blend files from a folder in the UI. Reading the folder content already works. The output lands in a list. Now I need to display the content of this list in a template_list box. I ...
0
votes
0answers
169 views

Custom UIList, nothing happens when double clicking list item to change name [duplicate]

I am trying to use template_list with custom items but I cannot make them change values on double click. I want to change 'name' property the same way I can rename items in other lists (with double ...