import pymel.core as pm
sn =pm.selected()[0]
vtx = sn.vtx
v0=vtx[0]
v0.setColor((1,0,0))
vc = v0.getColor(0)
print(vc)
注意:要显示顶点颜色,需要在shape下开启显示
import pymel.core as pm
sn =pm.selected()[0]
vtx = sn.vtx
v0=vtx[0]
v0.setColor((1,0,0))
vc = v0.getColor(0)
print(vc)
注意:要显示顶点颜色,需要在shape下开启显示
本文标题:maya pymel设置顶点颜色并显示
本文链接:https://www.haomeiwen.com/subject/glksrltx.html
网友评论