mirror of
https://github.com/OpenTrespasser/JurassicParkTrespasser.git
synced 2024-12-18 14:41:56 +00:00
20 lines
481 B
Plaintext
20 lines
481 B
Plaintext
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)
|
|
)
|
|
)
|
|
) |