My script gives this snippet of code:
// Error: disconnectAttr ("BendGroup.Bend") ($c + ".curvature");
// Error: An array expression element must be a scalar value. //
// Error: }; //
// Error: Syntax error //
So what's and array expression element? I've tried everything here, including putting my two attributes into strings and so forth, so what's causing the fuss?
to give more context it's from the following code, where i'm checking if the selection is in a particular group and in that case deleting the connection.
string $te = `listConnections $c`;
disconnectAttr ("BendGroup.Bend") ($c + ".curvature");