Linked Questions

10 votes
3 answers
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:
user avatar
  • 6,356
12 votes
1 answer
15k 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 ...
user avatar
  • 175
13 votes
2 answers
2k views

Assign datablock to custom property

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

Alternative update callback for PointerProperty?

I have created a custom property ...
user avatar
  • 331
2 votes
2 answers
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 ...
user avatar
  • 3,132
5 votes
1 answer
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 ...
user avatar
5 votes
1 answer
507 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 ...
user avatar
0 votes
2 answers
347 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 ...
user avatar
2 votes
0 answers
237 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 ...
user avatar
  • 197
1 vote
0 answers
90 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 ...
user avatar
  • 89