Maya报错:Cannot find procedure “DCF_updateViewportList”.

"""
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="")
 收藏 (0) 打赏

您可以选择一种方式赞助本站

支付宝扫一扫赞助

微信钱包扫描赞助

未经允许不得转载:喵喵动画屋 » Maya报错:Cannot find procedure “DCF_updateViewportList”.
分享到: 生成海报
一枚默默无闻的2B动画师。

热门推荐

评论 抢沙发

切换注册

登录

忘记密码 ?

切换登录

注册

我们将发送一封验证邮件至你的邮箱, 请正确填写以完成账号注册和激活