Skip to main content
12 events
when toggle format what by license comment
Apr 22, 2014 at 23:49 comment added CodeManX I moved additional template_list() examples to a new answer, as it's a bit off-topic. There's no need to update the .name property just for searching, you can implement your own searching and sorting in a proper way by implementing the filter_items() method.
Apr 22, 2014 at 23:43 history edited CodeManX CC BY-SA 3.0
deleted 3606 characters in body
Apr 22, 2014 at 19:14 vote accept Ben L
Apr 22, 2014 at 19:14 comment added Ben L You've helped me reach the limit of what blender can do. I'll mark this as an accepted answer.
Apr 22, 2014 at 19:02 comment added Ben L I thought of that one too. But since the additional properties are editable, I didn't want to have to edit the .name property every time the user edits something. I suppose this is all safe in blender. I'll just have to change my reference properties from strings to pointer properties so the id's don't become incorrect.
Apr 22, 2014 at 15:18 comment added CodeManX You can either implement your own filter_items function in the UIList subclass, or concat the search fields and set it as .name (which is searched against). You can draw ID, label and description or whatever, but leave out the .name property (implementation example added to my answer).
Apr 22, 2014 at 15:17 history edited CodeManX CC BY-SA 3.0
added 3606 characters in body
Apr 22, 2014 at 14:21 comment added Ben L Interesting implimentations. I considered paginatation but it seemed like an unfair hack. I'm going with the UIList Subclass. The limitations are I can compound the list_items into a better string using ID + name + description, but I can't search against it.
Apr 21, 2014 at 22:51 comment added CodeManX Added two more options, which can be used in a panel.
Apr 21, 2014 at 22:51 history edited CodeManX CC BY-SA 3.0
added 3665 characters in body
Apr 21, 2014 at 14:34 comment added Ben L I'm using a panel, not an operator. The second idea is interesting but I don't see how well this works for large lists of dynamically generated choices. I'm just trying to find the string in the list of strings.
Apr 18, 2014 at 23:12 history answered CodeManX CC BY-SA 3.0