problem to keep vertex selected

hello
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.
-------------------------------
(
local savesnap=snapMode.active
snapMode.active=true

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
)
destroyDialog pick_box_test
)
)
createDialog pick_box_test
snapMode.active=savesnap
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
titane357's picture

nevermind... vertexes stay

nevermind... vertexes stay selected => I'm a #[email protected]

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.