How to set driver distance max and min influence?
Here's the magic formula for the driver:

1.0 if (var &lt;= 0.0) else 0.0 if (var &gt;= &lt;maxval&gt;) else (&lt;maxval&gt;-var) / (&lt;maxval&gt;)


So if I want my max value to be 5.0, then the formula would look like this.

1.0 if (var &lt;= 0.0) else 0.0 if (var &gt;= 5.0) else (5-var) / (5)