Notifications
Clear all

[Closed] Moving vertex & Soft selection

Hi all & Bobo :applause:

I have a little question here:

In poly, vertex mode, softselection turned on:

I have selected some vertex and moved them with

move $.selectedVerts [123,123,123]

The selected vertex is moving, but all the other vertex that is affected by the soft selection is NOT ???
Why that ???

:wavey: :wavey: :wavey:

1 Reply

You have to explicitly move the affected verts when using maxscript. As far as I have been able to determine, this means cycling through all the mesh’s verts and using getVDataValue() on channel 1 to get the softselect value for each vert, then multiplying the move value by this amount, and then moving the vert by that amount. Naturally, this isn’t a fast operation, so I recommend sticking to bitarrays where possible rather than arrays (bitarrays are faster).

RH