{ //Get a list of all selected components string $selection[] = `ls -sl`; float $coord[]; //Using a 'for' loop to print out world positon of components for($component in $selection){ $coord = `xform -q -ws -t $component`; print ($component + " world positionX: " + $coord[0] + "\n;"); print ($component + " world positionY: " + $coord[1] + "\n;"); print ($component + " world positionZ: " + $coord[2] + "\n;"); print ("///////////////////////////////////////////////////////\n;"); } }