Sorcar
Sorcar copied to clipboard
I add a bool property in inputs node
Whether the object is created at the world origin,at the cursor by default.
Just a general remark. For such parameters, I'd suggest to use EnumProperty instead of BoolProperty, just for better UX. If you do this as a checkbox / toggle button named "Create blablabla", it will not be obvious to user what will it do if the checkbox is disabled. With EnumProperty, you can create a property named "Create object" with two possible values: "at origin", "at cursor".
Just a general remark. For such parameters, I'd suggest to use EnumProperty instead of BoolProperty, just for better UX. If you do this as a checkbox / toggle button named "Create blablabla", it will not be obvious to user what will it do if the checkbox is disabled. With EnumProperty, you can create a property named "Create object" with two possible values: "at origin", "at cursor".
yeah,I‘m learning dynamic enum property
This won’t require dynamic EnumProperty though. We only need 2 options in the drop down at the moment. It will also be easier to add more later.
@portnov Or name can be more clear like Center to origin
or Origin to 3D cursor
.