If you turn on History>Echo All Commands in the Script Editor you'll see the MEL commands for those actions whenever you run them. Code: DeleteHistory; CenterPivot; If you want to do this for the objects you have selected, it's easy. Code: //Store list of the selected objects in a string array string $selection[] = `ls -sl`; //For every item in that list... for($obj in $selection){ //Delete history and center pivot DeleteHistory; CenterPivot; }