This might just not be possible but I thought I'd ask. Is it possible to have two sliders min=0.0, max=1.0. Where their contents always sum to 1 but the user can still move them.
For example a slider A and slider B. When A is increased, B decreases by some linearly proportional amount.
I tried a couple different approaches, first by just setting the value in draw:
total = myPropGroup.probA + myPropGroup.probB
if total > 1.0:
myPropGroup.probA = myPropGroup.probA / total
myPropGroup.probB = myPropGroup.probB / total
layoutBox.prop(myPropGroup, "probA", text="Probability A", slider=True)
layoutBox.prop(myPropGroup, "probB", text="Probability B", slider=True)
Didn't even load.
I also tried using the set and update functions of the properties but caused some infinite loops.