Im trying to write a piece of code that requires the selected faces to be scaled at their selection center. scale command requires a pivot XYZ, or else it will try to scale in the origin. I tried using xform -q -sp -ws, but that doesnt give me the pivot for select center. Well at least its not the one the scale cmd takes. From what i can tell maya uses cm default for the pivots.
Replies
I'm not a scripter, I have a quick follow up question. So the script gives the pivot position, but then how would I use that position to scale something? Eg. scale 4 selected vertices to the center of their position (i.e. 0 0 0)
Setting something like this just scales the selected vertices way off in space: