CreativeDesigner3D / BlenderPro

My Custom Application Template for Blender
GNU General Public License v3.0
67 stars 11 forks source link

Create control that can display nested objects in a panel #3

Open CreativeDesigner3D opened 6 years ago

CreativeDesigner3D commented 6 years ago

The create a control that can display a nested hierarchy in a panel with the Blender Python API.

image

s-leger commented 6 years ago

Hi , take a look at this BA post could be a good starting point.

Alternative could be linearize hierarchy, storing into a flat collectionProperty and use regular UIList

NestedObjects(PropertyGroup):
  label=> Object's name
  level => nested level
  expand=> when nested should we expand that part