@duerer I also have no experience with scripting, but iit looks like a repetition of two commands. Just loop through all the Edges, something like:
For edge in edges:
do this and this
I will give it a try tomorrow, shouldn’t be too hard I guess…
On second thought, you probably don’t even need to Hide the Edges in the script…