also, it's usually worth thinking if there is a max way of doing what you want, and scripting that, usually is faster for max (noise modifier for instance sounds like what you are doing somewhat?) good luck!
To be clear, I was angling towards the idea that rather than write your own maxscript routine to move vert positions by noise or random amount, you could write a maxscript to add noise modifier with desired properties and so on, just saves you some scripting time, and possibly execute faster as it is built in max code…
MaxScript is strange. Some of the more difficult or intricate tasks it pretty much does for you, and yet some of the absolute simplest tasks like modifying a vertex position is difficult or undocumented. The Editable Mesh or Editable Poly methods don't work on the EP modifier, and I can't find anything suggesting how this…
Yeah, Edit_Poly and Mesh Modifier stuff is stupid. I also hate having to deal with Edit Poly and Edit Mesh types in scripts, but I do sometimes, and othertimes I just tell the user they need to use Edit Poly. I just came up with this, I think this is what you want Edit: ( local theMesh = selection[1] if selection.count ==…