Home Technical Talk

MEL how to select every second face on a ring?

polycount sponsor
Offline / Send Message
malcolm polycount sponsor
I've created a script which takes the user's selection and selects an edge pattern based on the how many edges they currently have selected. For example if they select 3 edges in a ring it will select the entire ring and leave a gap of 3 and then select the next 3, etc.
I'd like to extend the script to work on faces, but I can't seem to figure out how to do this. If someone could point me in the right direction that would be great, it feels like I should store the entire selection of the ring of faces in an array, and then somehow select every nth face in the array, but I'm not sure where I should be looking to learn how to do that, searched google quite a bit and come up empty.

Replies

Sign In or Register to comment.