- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone.
I am currently trying to script a tool with Python for automating bridges operations based on the edge loop (or border) which is selected. The issue is that I need to have my edges sorted in the order they follow each others on the loop, so that I can split them in two disctinctive groups of edges that could be bridged together.
I do get the correct edges list following each other on simple shapes (spheres, cylinders, etc...) But if I try to make a selection on another shapes (for example a cube subdivided with a hole in it, I don't).
I use this line of code in order to get the edges in a good order
I use this line in order to be able to change the starting and the ending point depending on the user offset input
And I split them into two different lists using these lines:
I Then substract a user input from the beginning and end of both new lists :
And it works perfectly on shapes that already had this idea of loop, selecting here these opposite faces, and allowing me to merge them together
Working Example - Selected edges are opposite and can be bridged together
But here is the type of error I get on more "complicated shapes". Here, juste a simple divided cube from which I deleted the top faces:
Here I cannot bridge (or use the offset input), because the selection for the 2 parts to bride are actually 4
If think I am doing something wrong, but I really have trouble figuring out what.
If you guys had any idea, I would really appreciate it. Thank you so much.
Teillet Martin
Solved! Go to Solution.