Linked Questions

10
votes
3answers
6k views

Object selection box in addon

In my addon panel, how can I have an object selection box? And what data type would I use to store the the selected object? It should look like this:
11
votes
1answer
14k views

How display and use operator properties in a Python Blender UI panel?

I have try to make an UI Panel with my operator, but i can not create a panel with the 2 choices (axis and widht). I can create a button who launch a menu in the tools pannel, and the operator works ...
12
votes
2answers
2k views

Assign datablock to custom property

With bpy.props I can assign bool, int, float and string ...
5
votes
2answers
1k views

Alternative update callback for PointerProperty?

I have created a custom property ...
2
votes
2answers
1k views

Python API: Multiple types in single UIList, dynamic memory allocation for serialized data [closed]

These questions are about the addon that I'm creating. Please excuse the bad/messy example code, I've been following the "get it working first, then optimize" philosophy. Issue 1 (dynamic memory ...
5
votes
1answer
1k views

What is the difference between bpy.props.CollectionProperty and bpy.props.PointerProperty?

I noticed that bpy.props.CollectionProperty and bpy.props.PointerProperty can both be used to collect custom properties (as is ...
3
votes
1answer
398 views

Is it possible to safely and reliably maintain a reference to a blender object in python?

I'd like to be able to refer to the same object multiple times from python. I'd ideally like to be able to move back and forth between using the python console and using the UI. The official ...
0
votes
2answers
171 views

Store viewport display color and toggle shading type

I need to toggle between material and object color in the viewport shading, when I toggle on, the viewport shading should change to object and all the selected objects should show the same custom ...
2
votes
0answers
236 views

Reference an object or data from a Python-defined property

Many built-in properties, such as Object.parent, reference scene data. In the UI, they are represented with pretty menu widgets and in certain cases also with a picker tool: Is it possible to create ...
1
vote
0answers
61 views

Checkbox array functioning as one. How do you separate the checkboxes

I trying to see if this is possible. I want to have the ability to choose which frames to re-render with checkboxes. First issue I am having is that the checkboxes active and de-active together. I ...