I'm simply trying to straighten preselected vertices along a single axis and switch back to select mode but the script doesn't actually move the vertices and I'm at a loss as to why. Here's the script in it's entirety-
macros.run "Tools" "Scale"
scale $.selectedVerts [1,0,1]
actionMan.executeAction 0 "50027" -- Selection: Select Object