修复maya提示"CgAbBlastPanelOptChangeCallback".

复制代码
"""
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="")
复制代码

 

posted @   CGRun  阅读(3758)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 别再用vector<bool>了!Google高级工程师:这可能是STL最大的设计失误
· 单元测试从入门到精通
  1. 1 一直很安静 王贰浪
  2. 2 热爱105°C的你 阿肆
  3. 3 She - Vicky宣宣 Anne Marie
  4. 4 目及皆是你 目及皆是你
  5. 5 很受伤 郁可唯
  6. 6 远远的时光 吉克隽逸
  7. 7 失眠播报 苏星婕
  8. 8 第三人称 买辣椒也用券
  9. 9 像鱼 王贰浪
热爱105°C的你 - 阿肆
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.
点击右上角即可分享
微信分享提示