Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 16 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save BigRoy/0c094648e6af1a22d6fe99cdc9837072 to your computer and use it in GitHub Desktop.
Save BigRoy/0c094648e6af1a22d6fe99cdc9837072 to your computer and use it in GitHub Desktop.
Little snippet to remove "CgAbBlastPanelOptChangeCallback" error from Maya scene - // Error: line 1: Cannot find procedure "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="")
@SkullNeck
Copy link

Thanks @BigRoy I will see if this solution solves this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment