JurassicParkTrespasser/jp2_pc/Tools/MAXScript/SelFacesVerts.ms

20 lines
481 B
Plaintext
Raw Permalink Normal View History

2018-01-01 22:07:24 +00:00
Utility SelFacesVerts "Sel Faces / Verts"
(
spinner Index "Index:" type:#integer range:[1,4096,1]
radioButtons SubObjectType "Type:" labels:#("Faces", "Verts")
button Select "Select"
on Select Pressed do
(
sel = selection as array
oc = sel.count
for i = 1 to oc do
(
if SubObjectType.state == 1 do
setFaceSelection sel[i] #(index.value)
if SubObjectType.state == 2 do
setVertSelection sel[i] #(index.value)
)
)
)