def channelbox_command_deleteAttributes(box, menuItem, key, *args): cmds.channelBox(box.channelbox, e=1, exe=("catch (`deleteAttr -attribute \"#A\" \"#P\"`);", 1)) # --