Hej, you made nice sript "Z-sorting" and I tried to made the same, but its problem with trees placed manually. Your script works only when you generate those trees.
When I place trees manualy, only first tree working properly. Is is possible to fix this?
ps. ok I'm using script for buildings and it works for trees (probably)