Distort Curve script

 From:  Max Smirnov (SMIRNOV)
6659.21 
v.0.9
[Added] Closed curves support
[Changed] Distort slider values. Now Distort(10) = +- 1 unit. If you use mm unit system, Distort(10) = +- 1mm. Distort (150) = +-15mm, etc.
[Fixed] Pilou's bug. (I can't reproduce it, but I added one more check. Now this bug should be fixed. Pilou, try this version.)

EDITED: 7 Mar 2022 by SMIRNOV