View Single Post
# 2 10-08-2013 , 10:09 AM
Gen's Avatar
Super Moderator
Join Date: Dec 2006
Location: South FL
Posts: 3,522
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;


}


- Genny
__________________
::|| My CG Blog ||::
::|| My Maya FAQ ||::