fragmented sphere - new object pivot problem
I have this Sphere. I fragment it in lets say 20 fragments. The fragments get the pivot point of the sphere. I want to put a bend modifier on each fragment object so i need each object to have its pivot with the z axis pointing outside the sphere. How can i use maxscript to alter the original pivot of each object to point in the right direction? i'm quite new to maxscript and i can't figure it out. If i get the normals from a face or vertex can i use that to modify the pivot rotation for that object?