mmmrqs / bl_ui_widgets

UI Widgets for Blender 2.8 and newer versions
GNU General Public License v3.0
47 stars 5 forks source link

panel config object #7

Open SuddenDevelopment opened 1 year ago

SuddenDevelopment commented 1 year ago

this one is for me to complete. Gathering feedback on plan though.

implement the ability to define all properties and combos needed for a panel from a single config, reducing the code repetition and boilerplate, keeping the same flexibility.

{
    defaults:{
        button:{key:value}
        patch:{key:value}
        ...
    },
    items:[
        {
            type:'button|patch|slider'
            name:'string used for key'
            settings:{key:value}
            items:[]
        }
    ]
}

each parent will have a position to reference for children items, this way rows can be created by cumulative y positions within a group

mmmrqs commented 1 year ago

this one is for me to complete. Gathering feedback on plan though.

implement the ability to define all properties and combos needed for a panel from a single config, reducing the code repetition and boilerplate, keeping the same flexibility.

each parent will have a position to reference for children items, this way rows can be created by cumulative y positions within a group

I am looking forward to see your finished code and hopefully I can learn much with it. I am really a noobie in regard to Python coding. This bl_ui_widgets library addon was my first time even working with Python, and I came from old school procedure based languages like Basic, Cobol, Pascal, Clipper, CAGen... LOL -- This dictionary/list approach is completely new to my way of thinking. Glad you are sharing it.