problem to keep vertex selected
I did a little script to "project" selected vertexes along 2 clicked points on a designed surface. But I would like to keep the vertexes selected.
I know : create a array of the selected vertexes and at the end reselect this array... but I don't know how.... if anyboby can help.
pta = pickpoint snap:#3d
ptb = pickpoint snap:#3d rubberBand:pta
ptd = ( ptb - pta )
nptd = normalize ptd
vvv = $
rollout pick_box_test "Target surface"
pickbutton chooseit "Intersect me" width:140
on chooseit picked obj do
for v in polyOp.getVertSelection vvv do
pta = (polyOp.getVert vvv v)
RRay = ray pta nptd
PPos = (intersectRay obj RRay).pos
polyOp.setVert vvv v PPos