maya等软件问题合集

maya

callback 问题

最近”有幸”遇到了这个问题,

解决方法
python

1
2
3
for modelPanel in cmds.getPanel(type="modelPanel"):
if cmds.modelEditor(modelPanel, q=1, ec=1) == "CgAbBlastPanelOptChangeCallback":
cmds.modelEditor(modelPanel, e=1, ec="")

转载于智商帝

渲染设置面板丢失

解决方法
mel

1
2
deleteUI unifiedRenderGlobalsWindow;
buildNewSceneUI;

删除未知节点

解决方法
python

1
2
3
4
5
6
unknown_nodes = cmds.ls(type=['unknown', 'unknownDag', 'unknownTransform'])
if len(unknown_nodes) > 0:
cmds.delete(unknown_nodes)
print '%s remove success.' % unknown_nodes
else:
print 'There are no Unknown Node.'
1
2
3
4
5
6
7
unknown_plugin = cmds.unknownPlugin(q=True, list=True)
if unknown_plugin is not None:
for i in unknown_plugin:
cmds.unknownPlugin(i, remove=True)
print 'Unkown Plugin %s remove sucess.' % i
else:
print 'There are no Unkown Plugin.'