Creating a fully functional custom property requires also setting up
its limits, description, default value and static override status.
It is complex enough to warrant providing an official utility.
Details
Details
- Reviewers
Campbell Barton (campbellbarton) Bastien Montagne (mont29) - Commits
- rBS40dd91561d46: Python: add a utility function for creating custom properties.
rBe46cd984075e: Python: add a utility function for creating custom properties.
rB40dd91561d46: Python: add a utility function for creating custom properties.
Diff Detail
Diff Detail
- Repository
- rB Blender
- Branch
- rna-idprop-create (branched from master)
- Build Status
Buildable 3259 Build 3259: arc lint + arc unit
Event Timeline
Comment Actions
Think that makes sense, wouldn’t mind getting @Campbell Barton (campbellbarton)'s point of view on that one though.
Also think name should be more specific, that is *not* about ID properties, that is about UI-extension of ID properties. something like rna_idprop_ui_prop_create() e.g.?
Comment Actions
Do you think the function should reveal the inside knowledge that booleans don't exist (they become ints on the C side), or instead pretend they do and just sanitize the limits?
| release/scripts/modules/rna_prop_ui.py | ||
|---|---|---|
| 123 | Could call this rna_idprop_ui_create, since it's creating the UI values. | |