修复maya提示Cannot find procedure "CgAbBlastPanelOptChangeCall

发贴时间:2020-07-10 11:32 

来自版块:脚本插件

人气16202 评论6 点赞6
点赞 6
收藏 3
打赏 1
扫码分享给朋友
当前帖子链接已复制,快去粘贴分享吧~
下载文件
×
本帖全部文件列表
插件类型:
插件语言:



Maya(写实风格)特效示意库插件

修复Maya 提示// Error: line 1: Cannot find procedure "CgAbBlastPanelOptChangeCall...
截图.png

拷贝一下代码,放入命令窗口,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 活力值 并说:谢谢分享,希望能看到你的更多精彩作品!
复制以下链接分享到 QQ群 QQ空间 贴吧 或其他CG网站上,每进来一个人你将获得: 2微豆

客服
快速回复 返回顶部 返回列表