Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pymel.core as pm
- sel = pm.selected()
- for mesh in sel:
- # Copy current UV map
- foo = pm.polyUVSet(mesh, q=True, auv=True)
- if len(foo) > 1:
- # Delete anything not map1
- for map in foo:
- curr = str(pm.polyUVSet(mesh, q=True, cuv=True)[0])
- if curr != 'map1':
- pm.polyUVSet(mesh, d=True, uvSet=curr)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement