What do you mean "make everything variable"? If you mean the distances then you would have to change the script and re-apply it. It can't be infinitely variable because it is controlling the iterations which are a set of constant values and therefore require discreet "steps" in the distances to trigger the changes.
As for the viewport - I have no idea how one would do that, if it's even possible.
Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).