I'm creating addon that adds couple of objects to the scene and I need to control input arguments. Figured out that the best way for me (with almost zero experience with python but 25+ years in other languages, mostly object oriented) is to use existing templates. Two of them that are working perfectly are
Addon Add Object and
Operator Mesh Add.
I can easily define new properties by adding simple code like this
# my properties scale: FloatProperty( name="Scale", description="some description", min=0.000001, max=1000, default=0.01, ) clWidth: FloatProperty( name="Chain Link Width", description="some description", min=0.01, max=10000, default=12.7, ) clCount: IntProperty( name="Chain Link Pairs", description="some description", min=20, max=1000, default=41, ) # ... etc
What I'm getting in lower left corner of the screen is input box like this.
What's bugging me a lot are those props outside of red mark atop of dialog. Course, they are important but mostly I don't use them at all. Is there a way to switch their position and put them below my custom properties or somehow collapse them to minimize size of dialog?
I've seen some addons are using different dialogs (the way I like it) but can't figure out how to get different look.
This is an example
Even if there's a way to remove those transform props completely, will be fine because I'm rarely using them and mostly doing all transforms later directly on the scene.