hi.
i know very little about scripting.
i was having trouble with a file.
i sent the file to autodesk and received an email that if i pasted the following in the script editor it would fix my problem.
the problem is there seems to be a syntax error with this script.
string $connections[] = listConnections -c 1 -p 1 -s 1 -d 1 lightLinker1
;
int $i = 0;
for($i = 0; $i < size($connections) ; $i = $i + 4) {
if( $connections[$i+1] == $connections[$i+3] ) {
disconnectAttr $connections[$i+1] $connections[$i];
disconnectAttr $connections[$i+3] $connections[$i+2];
}
}
when do this i get a message back saying:
// Error: Syntax error
when i paste the script t into the bottom pane of the script window and select it and then under help select>help on selected command
i get the following message:
// Error: There is no command named "string $connections[] = listConnections -c 1 -p 1 -s 1 -d 1 lightLinker1
;
int $i = 0;
for($i = 0; $i < size($connections) ; $i = $i + 4) {
if( $connections[$i+1] == $connections[$i+3] ) {
disconnectAttr $connections[$i+1] $connections[$i];
disconnectAttr $connections[$i+3] $connections[$i+2];
}
}". //
// Error: Type "help" for general information about the help command. //
ddoes any one know what the syntax error is or what this should say?
also is the a MEL command or Python?
thank you very much,
hrvey