The problem I have is that the index gets out of range if it tries to select polygons after the last facenumber. What can I do to prevent it from getting out of range?
rollout mainroll "Select polygons"
button Nthsel "Nth Sel"
on Nthsel pressed do undo on
FaceSel = polyop.getfaceselection $.baseobject
Facearr = polyop.getfaceselection $.baseobject
for i in FaceSel do
append Facearr (i+2)
setfaceselection $ Facearr
main = newrolloutfloater "Nth Select" 130 120
addrollout mainroll main