Actually that's what the "$" is. It stands for the selected object. So "$.material" gives you the selected object's material, "$.pos" is the selected object's position, and so on. Now you'll be able to sleep easy tonight knowing there really is a selected object function.
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…
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) )…