Results 1 to 3 of 3
  1. #1

    index n out of range


    I'm tryng to make a script that look inside a mesh with several parts, and delete the smallest (< thresold)

    I'd like using bmesh to stay only one time in EDIT mode, and the first try I wrote works if the thresold only bigger than the smallest part; if I increase the thresold over the second smallest part, the script fail and give me the error "index n out range" (where n is the index of the face)

    For better explain try to run Text script in . blend attached using the value FaceThresold = 0, 10 and 20; when using 20 it start to fail.

    Someone can help me understanding what I'm doing wrong?


  2. #2
    If you delete some verts in first past
    it will re index all others so first index list won't be good anyway!

    hope it helps

    happy bl
    Nice 3D models = 25 % K.I.S.S + 25 % common sense + 25 % Inspiration + 25 % Knowledge
    Win 10 64 bits / Thanks and a Happy 2.79 with Cycles

  3. #3
    Yeah!! I understand!! Thank you!! (now it works)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts