Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- //create a list of selected objects (based on order selected)
- string $selectionList[] = ` ls -sl`;
- //loop through each item in the selection list and perform opterations
- int $i=0;
- for ($eachItem in $selectionList)
- {
- move 0 0 0 ($selectionList[$i] + ".scalePivot") ($selectionList[$i] + ".rotatePivot") ;
- duplicate -rr $selectionList[$i];
- setAttr ($selectionList[$i] + ".scaleZ") -1;
- FreezeTransformations $selectionList[$i];
- makeIdentity -apply true -t 1 -r 1 -s 1 -n 0 $selectionList[$i];
- ReversePolygonNormals $selectionList[$i];
- polyNormal -normalMode 0 -userNormalMode 1 -ch 1 $selectionList[$i];
- DeleteHistory;
- select -cl;
- $i++;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement