Advertisement
Guest User

Untitled

a guest
Feb 21st, 2018
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import pymel.core as pm
  2.  
  3. sel = pm.selected()
  4. for mesh in sel:
  5.  
  6. # Copy current UV map
  7. foo = pm.polyUVSet(mesh, q=True, auv=True)
  8. if len(foo) > 1:
  9. # Delete anything not map1
  10. for map in foo:
  11. curr = str(pm.polyUVSet(mesh, q=True, cuv=True)[0])
  12. if curr != 'map1':
  13. pm.polyUVSet(mesh, d=True, uvSet=curr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement