Im having to repeatedly scale sets of vertices so they occupy the same position in space, and I'm using Soft Selection to influence their neighboring vertices. I'd love to have a MAXScript that does this in a single button, but I'm MXS illiterate. I tried using the FlattenX/Y/Z meshtools, but they ignore Soft Selection.…
Thanks FatAsassin, but the models are Editable Poly. MoP, nothing happens when I try your code... <font class="small">Code:</font><hr /><pre> -- Paul Greveson, 2005.01.26 macroScript ScaleVertsPG category:"Eric" toolTip:"Will scale the selected vertices to 0" ( scale $.selectedVerts [0.0,0.0,0.0] update $ ) </pre><hr />…
And you are right : <mesh>.selectedVerts The currently selected vertices of the mesh object Sorry to pop up this old old post. I am in the same situation. The macro recorder will give me : scale $.selectedVerts [1.001,1.001,1.001] Whish return undefinded when run in the code. *looking for alternative solution*. I'd rather…
Try this. It's probably more complicated than it needs to be, but it works. Make sure you have more one vert selected in an editable mesh object before running it. <font class="small">Code:</font><hr /><pre>vertArr = getVertSelection $ as array posArr = #() newPos = 0 for i in vertArr do ( append posArr (getVert $ i) )…
it seems like it'd be really easy to do if Maxscript was at all sensible... I can't seem to find the function for "selected object" at all... cos then you could use scale $selectedObject.selectedVerts [0.0,0.0,0.0] but it seems you need to use $Box01.selectedVerts (or whatever object name)... I had a look through the help…