我需要打印每个剃须形状和它指定的着色器名称,如果指定。请帮忙。你知道吗
import os
import maya.cmds as cmds
shave_list = cmds.ls(type='shaveHair')
cmds.select(cl=True)
a = 0
list_texture = []
while a < len(shave_list):
file_list = cmds.listconnections(shave_list[a],type="file")
a+=1
Tags:
如果需要形状的着色器名称:
要获取所有头发形状的着色器:
如果形状没有附加明暗器,它应该为明暗器打印
None
。如果形状有多个着色器,这将不会给出正确的结果-我不确定这是否可能。你知道吗相关问题 更多 >
编程相关推荐