修復Maya 提示// Error: line 1: Cannot find procedure "CgAbBlastPanelOptChangeCall... ![]() 拷貝一下代碼,放入命令窗口,python運行即可: """ This will iterate all modelPanels and remove the "CgAbBlastPanelOptChangeCallback" As such, after running this the following error should be fixed: // Error: line 1: Cannot find procedure "CgAbBlastPanelOptChangeCallback". // """ from maya import cmds for model_panel in cmds.getPanel(typ="modelPanel"): # Get callback of the model editor callback = cmds.modelEditor(model_panel, query=True, editorChanged=True) # If the callback is the erroneous `CgAbBlastPanelOptChangeCallback` if callback == "CgAbBlastPanelOptChangeCallback": # Remove the callbacks from the editor cmds.modelEditor(model_panel, edit=True, editorChanged="") |
|
2 微豆 | 44 活力值 | 并說:謝謝分享,希望能看到你的更多精彩作品! |
---|