import pymel.core as pm
# 清理文件中的nan数值
animcurves = pm.ls(type='animCurve')
for animcurve in animcurves:
allkeys = pm.keyframe(animcurve ,q=1, tc=1, vc=1)
for key in allkeys:
if pm.datatypes.isnan(key[1]):
pm.cutKey(animcurve, time=[key[0],key[0]], clear=1)
上一篇
材质相关
2024-05-10
下一篇
从maya获取到单独的panel放到自己写的界面上
2024-05-10