首页 > 其他分享 >修复maya提示"CgAbBlastPanelOptChangeCallback".

修复maya提示"CgAbBlastPanelOptChangeCallback".

时间:2022-12-16 00:55:14浏览次数:37  
标签:maya 修复 cmds callback CgAbBlastPanelOptChangeCallback model True

"""
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="")

 

标签:maya,修复,cmds,callback,CgAbBlastPanelOptChangeCallback,model,True
From: https://www.cnblogs.com/CGRun/p/16986353.html

相关文章