Tree Distance script

Hello. I was wondering. Is there a script that would increase Tree Distance from the maximum value (5000) to 15000 for example?

I found this script (Increase Terrain Detail Draw Distance for grass), but I would like to use the same script for the Paint Trees tool.

Is there also a tool to reduce Batches? I have 15 000 of them in my terrain, and the resulting WebGL export is very slow.

Thank you for your advice.