MSelectionList clusterSelList;
clusterSelList.add(clusterName+".weightList[0].weights");
MPlug clusterPlug;
status = clusterSelList.getPlug(0, clusterPlug);
if (!status){ MGlobal::displayError("Failed to get cluster plug!"); return status;}
MItMeshVertex vtxIter(meshPath);
vtxIter.reset();
for (; !vtxIter.isDone(); vtxIter.next()){
int vtxIndex = vtxIter.index();
double w = phiNew(vtxIndex);
status = clusterPlug.elementByLogicalIndex(vtxIndex).setFloat(w);
if (!status){ MGlobal::displayError("Failed to set cluster plug!"); return status;}
phiNewDoubleArray.append(w);
}