Sorcar icon indicating copy to clipboard operation
Sorcar copied to clipboard

I add a bool property in inputs node

Open huiyao8761380 opened this issue 5 years ago • 5 comments

Whether the object is created at the world origin,at the cursor by default.

huiyao8761380 avatar Jan 01 '20 04:01 huiyao8761380

QQ截图20200101122532

huiyao8761380 avatar Jan 01 '20 04:01 huiyao8761380

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".

portnov avatar Mar 17 '20 16:03 portnov

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

huiyao8761380 avatar Mar 18 '20 09:03 huiyao8761380

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.

aachman98 avatar Mar 18 '20 18:03 aachman98

@portnov Or name can be more clear like Center to origin or Origin to 3D cursor.

Durman avatar Mar 26 '20 04:03 Durman