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.