import pymel.core as pm
ref_nodes = pm.ls(references=True)
for ref_node in ref_nodes:
try :
ref_path = pm.referenceQuery(ref_node, filename=True)
except :
ref_node.unlock()
pm.delete(ref_node, ref_node.listConnections())
上一篇
删除残留插件
2024-05-10
下一篇
maya工具架增加分割线
2024-05-10