given a material node, eg. blinn, how do I break a connection in MEL?
to create lower quality versions of assets, i'm shrinking down file textures and removing bump and spec from all materials.
to do this manually, you go to the material, go next to the attribute, eg. bump, and right click -> break connection.
in the script editor, it uses disconnectAttr. The problem with this command is that i need both the input and output attributes to complete the arguments for the command. for bump, for example, it shows:
"disconnectAttr bump2d3.outNormal blinn1.normalCamera"
i've also tried deleteAttr without success. i'm going to look into listConnections and see if that leads anywhere. any help is appreciated!