[Bf-taskforce25] Operator standardization

Campbell Barton ideasman42 at gmail.com
Mon Feb 2 04:12:11 CET 2009


On Sun, Feb 1, 2009 at 6:04 PM, Nathan Letwory <jesterking at letwory.net> wrote:
> 2009/2/2 Campbell Barton <ideasman42 at gmail.com>:
>> Reply inline...
>> yesterday, I looked over the props and found for percent, 1 used
>> "percentage" others "percent", some were floats, most ints. Im not
>> really fussed but Id like to try keep some of these variable inputs
>> consistent.
>> I settled on percent, float since a python script may want to run an
>> operator like vertex to sphere with a percentage of 66.6666. and I
>> dont see any reason to force using ints.
>
> For this probably better would be to adher to 0.0 - 1.0 convention.
> Then the python script would give 0.666666. This is also what Ton
> tried to communicate in IRC the other day.
>
> /Nathan

agree from an api perspective 0.0 - 1.0 makes sense.
But for the UI, "Select Random, 50%" seems more user friendly then
"Select Random Factor 0.5"

-- 
- Campbell


More information about the Bf-taskforce25 mailing list