vertex selection code error fix porblem ~
hi i need some help ~~
i made this code but that is error
pls can you fix ~
objs = selection as array
for obj in objs do
(
if classOf obj.baseobject == Editable_Poly then
(
verts = polyop.getNumVerts obj
obj.pivot = [obj.center.x,obj.center.y,obj.min.z]
minz = obj.min.z
centerz= obj.center.z
differ = centerz-minz
differz = ( differ * 0.3)
tempAr=#()
for i = 1 to verts do
(
vert = polyOp.getVert obj i -- get a vertex
if vert.z < differz then
(
append tempAr vert as array
)
polyop.setVertSelection obj tempAr
obj.EditablePoly.ConvertSelection #Vertex #Face
subobjectLevel = 4
local currentFaceNormal
local currentFaceVerts
local extrudeValue = [0,0,40.0]
for i in obj.selectedFaces do
(
currentFaceNormal = polyop.getFaceNormal obj (i.index)
currentFaceVerts = polyop.getVertsUsingFace obj obj.selectedFaces
in coordsys (MatrixFromNormal (currentFaceNormal)) polyop.moveVert obj currentFaceVerts extrudeValue
)
)