Any one good at bone driver math? Numbers are not my friends :)

Hi anyone know of a formula to convert a driven bones distance into the correct value for the generator in the drivers panel I’m still just doing trial and error it would be nice to know a efficient way of getting the correct value.

Attachments


If I understand things right, you want to convert Z values in the range (-5, 5) to be used as influence in the range (0, 1). So…

Influence = (Z + 5) * 0.1

+5 to move into the range (0, 10) and * 0.1 to divide by 10 and fall back into the range (0, 1). Simple…

A formula to write on a Post-It:

To convert a value A in range (minA, maxA) into B in range (minB, maxB)

offset = minB - minA

scale = (maxB - minB) / (maxA - minA)

B = (A + offset) * scale

With your values:

minA = -5, maxA = 5
minB = 0, maxB = 1

offset = 0 - (-5) = +5
scale = (1 - 0) / (5 - (-5)) = 1/10 = 0.1

B = (A + 5) * 0.1

Correct! :smiley:

Hi Kaluura

Thanks very much for the reply and formula I will definatley give it a go :smiley: I had another go at trying to figure out and understand what was going on and managed to come up with a solution, it took me all day to work out so would be a shame not to post it. Probably not the easiest way but was rapt to end up with a result.

Attachments