Last active
February 2, 2021 02:05
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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