I’m trying to find a way to move verts in an Edit_Poly modifier, but the only way I know how to do that is by selecting them and then moving the selection. The problem with this is that it requires the script to switch the sub object mode to verts and then back to whatever the user had selected afterwards, which is very slow. Here’s what I’m doing:
holdSub = subobjectLevel
subobjectLevel = 1
vertToMove = 4
newPos = [0,0,0]
modFullName = modpanel.getCurrentObject()
modFullName.setSelection #Vertex #{}
modFullName.Select #Vertex #{vertToMove}
curPos = modFullName.GetVertex vertToMove
newOffset = (newPos - curPos)
modFullName.MoveSelection newOffset
modFullName.Commit()
subobjectLevel = holdSub
Is there a better/faster way to do this?
