Linked Questions

12 votes
3 answers

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:
Garrett's user avatar
  • 6,596
14 votes
1 answer

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 ...
Fabrice's user avatar
  • 195
14 votes
2 answers

Assign datablock to custom property

With bpy.props I can assign bool, int, float and string ...
Germar's user avatar
  • 375
5 votes
2 answers

Alternative update callback for PointerProperty?

I have created a custom property ...
LAK132's user avatar
  • 351
6 votes
1 answer

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 ...
user15546's user avatar
2 votes
2 answers

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 ...
Qutorial's user avatar
  • 3,322
5 votes
1 answer

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 ...
Ed Wagstaff's user avatar
0 votes
2 answers

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 ...
Juan Carlos's user avatar
2 votes
0 answers

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 ...
emu's user avatar
  • 197
1 vote
0 answers

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 ...
Sharl's user avatar
  • 89
3 votes
1 answer

How can I pass an object (like a bmesh) to an operator or should I not do that?

I have an operator that creates a certain mesh but I want to keep things modular so I separated each operation into its own operator. Like for example, I have an operator that removes vertices that ...
Megan Love's user avatar
0 votes
0 answers

How to have PointerProperty pointing at simple Integer Property in Python/Blender?

I'm trying to add a Pointer Property in my code that would be able to reference an Integer Property that exists on some data block of some object. What is the proper way of doing it? I thought it ...
Maciej Gliwa's user avatar