Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. {
  2.  
  3. //create a list of selected objects (based on order selected)
  4. string $selectionList[] = ` ls -sl`;
  5.  
  6. //loop through each item in the selection list and perform opterations
  7.  
  8. int $i=0;
  9.  
  10. for ($eachItem in $selectionList)
  11. {
  12. move 0 0 0 ($selectionList[$i] + ".scalePivot") ($selectionList[$i] + ".rotatePivot") ;
  13. duplicate -rr $selectionList[$i];
  14. setAttr ($selectionList[$i] + ".scaleZ") -1;
  15. FreezeTransformations $selectionList[$i];
  16. makeIdentity -apply true -t 1 -r 1 -s 1 -n 0 $selectionList[$i];
  17. ReversePolygonNormals $selectionList[$i];
  18. polyNormal -normalMode 0 -userNormalMode 1 -ch 1 $selectionList[$i];
  19. DeleteHistory;
  20. select -cl;
  21. $i++;
  22. }
  23.  
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement