Skip to content

Instantly share code, notes, and snippets.

@SEVEZ
Last active February 2, 2021 02:05
Show Gist options
  • Save SEVEZ/b53a1398e9101a30b8d8 to your computer and use it in GitHub Desktop.
Save SEVEZ/b53a1398e9101a30b8d8 to your computer and use it in GitHub Desktop.
Transfer current uv set from last selected object to current uv sets of all others #Final
import maya.cmds as mc
sel = mc.ls( sl=1 )
sUV = mc.polyUVSet( sel[-1], q=1, cuv=1 )[0]
for d in sel[:-1]:
mc.transferAttributes( sel[-1], d, uvs=1, suv=sUV, tuv=mc.polyUVSet( d, q=1, cuv=1 )[0], col=0, spa=0, sm=3, fuv=0, clb=0, pos=0, nml=0 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment