def hideArnoldAttrs(*args):
"""
will hide the arnold attributes from the channelbox
"""
crvAttrs = [".ai_curve_shaderb", ".ai_curve_shaderg", ".ai_curve_shaderr", ".srate", ".cwdth", ".rcurve"]
meshAttrs = [".emitSpecular", ".emitDiffuse", ".intensity", ".scb", ".scg", ".scr", ".ai_color_temperature", ".ai_use_color_temperature", ".ai_volume", ".ai_indirect", ".ai_sss", ".ai_specular", ".ai_diffuse", ".ai_exposure", ".ai_shadow_density"]
octaneAttrs = [".octGeoType", ".octGenVis", ".octCamVis", ".octShVis", ".octLayerId", ".octBakGrId", ".octRandomSeed", ".octRPassColorR", ".octRPassColorG", ".octRPassColorB", ".octConstTopology", ".octMergeUnweldedVert", ".octSubdLevel", ".octSubdSharpness", ".octSubdBoundInterp", ".octSubdSceme"]
meshes = cmds.ls(type="mesh")
if meshes:
for m in meshes:
for attr in meshAttrs:
cmds.setAttr("{0}.{1}".format(m, attr), keyable=False, channelBox=False)
crvs = cmds.ls(type="nurbsCurve")
if crvs:
for c in crvs:
for attr in crvAttrs:
cmds.setAttr("{0}.{1}".format(c, attr), keyable=False, channelBox=False)
评论列表
文章目录