This is the incomplete code, my inputs are mention in this codes (cluster, geometry and its values). Which class i can use for set the cluster weights?. Is it possible to use maya.api.OpenMayaAnim.MFnSkincluster to set cluster weights.
import maya.api.OpenMaya as om
import maya.api.OpenMayaAnim as oma
#inputs
myCluster = ['cluster1', 'clusterHandle']
meshShape = 'pSphereShape'
vertexList = [1,2,3,4,5]
weights = [1.0, 0.5, 0.5, 0.5, 0.5]
#To MObject
clusterList = om.MSelectionList ()
clusterList.add (myCluster[0])
clusterMObject = clusterList.getDependNode (0)
meshList = om.MSelectionList ()
meshList.add (myCluster[0])
meshMObject = meshList.getDependNode (0)
Any help would be greatly appreciated!