Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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="")
@BigRoy

This comment has been minimized.

Copy link
Owner Author

@BigRoy BigRoy commented Aug 8, 2019

Mentioned this CgAbBlastPanelOptChangeCallback issue in Avalon Gitter and David Latwe mentioned here resorted to just declaring a dummy mel function to stop the error getting spammed ever again but have it just trigger a null function.

@D-KeyChen

This comment has been minimized.

Copy link

@D-KeyChen D-KeyChen commented Sep 2, 2019

thank you very much!
你的Code帮助了我.
帮助我解决了这个烦人的 error 提示.

@kodiguides

This comment has been minimized.

Copy link

@kodiguides kodiguides commented Dec 15, 2019

i forgot my password and had to change it and then authorise my account, just to comment on here to say thank you, this error was annoying the heck out of me and this solved it.

@BigRoy

This comment has been minimized.

Copy link
Owner Author

@BigRoy BigRoy commented Dec 15, 2019

@kodiguides glad it helped. Can you confirm whether it's still fixed after saving and reopening the scene? :)

@boyyscout

This comment has been minimized.

Copy link

@boyyscout boyyscout commented Mar 25, 2020

@BigRoy It Didn't work for me. I'm on Maya 2018.

@BigRoy

This comment has been minimized.

Copy link
Owner Author

@BigRoy BigRoy commented Mar 25, 2020

@boyyscout Can you confirm you're getting the exact same error message? Maybe attach a screenshot to show it?

@BigRoy

This comment has been minimized.

Copy link
Owner Author

@BigRoy BigRoy commented Apr 1, 2020

For the sake of completeness I've added some more details/information on the original topic including where it's found in the uiConfigurationScriptNode.

@boyyscout

This comment has been minimized.

Copy link

@boyyscout boyyscout commented Aug 23, 2020

@BigRoy It actually works! Thanks man

@Roumenov

This comment has been minimized.

Copy link

@Roumenov Roumenov commented Oct 28, 2020

Thnx man, these ui script node errors are annoying af.

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