At present we can only write to vectorArray attributes via MEL or python script, and due to the legacy formatting of the command it is limited to 252 vectors. It would be useful to be able to write to 1000s of vectors via using the Python Maya API2.0 using an actual list of tuples or an MVectorArray.
Here is the legacy code I used that was limited to 252 values:
# set a vector array attribute from a list
def setVectorArrayAttr(node, attr, vectorArrayList):
numVectors = len(vectorArrayList)
cmdString = "mc.setAttr('"+node+'.'+attr+"',"
vectorArrayString = ""
vectorArrayString += str(numVectors)+','
for vectorItem in vectorArrayList:
vectorArrayString += str(vectorItem)+','
cmdString = cmdString+vectorArrayString+"type='vectorArray')"
eval(cmdString)