模型根据自动展开铺平成和UV一样,流程中模型师需要制作鳞甲之类得东西或许是一个比较省事得
脚本。
-----------------------------------------------------------------------------------------
import maya.cmds as cmd
import maya.mel as mel
def cm(fun):
ret=mel.eval_r(fun)
return ret
selobj=cmd.ls(sl=True)
cmd.ConvertSelectionToUVs()
cm("polySelectBorderShell 1")
bor_ver=cmd.ConvertSelectionToVertices()
cmd.DetachComponent()
cmd.select(selobj)
cmd.ConvertSelectionToVertices()
sel_ver=cmd.ls(sl=True,fl=True,l=True)
polyScale=1;
for v in sel_ver:
cmd.select(v)
verUV=cmd.polyListComponentConversion(tuv=True)
uv=cmd.polyEditUV(verUV,q=True,u=True,v=True)
cmd.select(v)
cmd.move(uv[0]*polyScale*10,0,uv[1]*polyScale*10,ws=True)
cmd.select(cl=True)
##############
原文链接:http://blog.sina.com.cn/tiancgweb