Hi everyone! i'm going to try a script create a dummie into each epoly element, i've try some ways but i dont get to store the Unique elements into Array, i've got to save every elements by face but i dont get to delete duplicated elements, its a array with BitArrays. I know this question is very noob :sweat: Thanks !!
can you explain what you're doing in a bit more detail ? - I can't see how you'd end up with any duplicates if you simply store a face selection bit array for each element
I see the problem now - Rather than automatically appending in the first for loop you should check if the current face is present in any of the existing bitarrays in allFaceElements - if it is, you don't need to bother with it. that way you should end up with unique list of bitarrays
Sorry Poopipe, here the code: fn selectElements tObject= ( local totalFaces= polyop.getNumFaces tObject local allFaceElements = #() local uniqueElements = #() for i=1 to totalFaces do ( -- get all Elements objElement = polyop.getElementsUsingFace tObject #(i) -- return a BitArray by default append allFaceElements…