Please copy and paste the output from the script editor and show more of the code. It would help to see a larger selection of the code and the exact message in the script editor.
One thing that stands out is that ALL variables in Maya mel are prefixed by $. Therefore all of what look like variables in your example would be syntactically incorrect.
Next weights are generally expresses as fractional or floating point values between 0.0 and 1.0 you are assigning them as integers (which is really okay because they will / should be automatically cast) but for code readability you should present them as floating point values.
All variables in mel should be defined. I do not see where any of your variables are declared but once again I am assuming what are variables only based on context since syntactically you have NO variables in that snippet of code.
"If I have seen further it is by standing on the shoulders of giants." Sir Isaac Newton, 1675
Last edited by ctbram; 25-10-2012 at 10:55 PM.