using open maya setPoints ?!?!


#1

hi there,

i have a list storing all the verts in a mesh,
i have another list which contains all the coordinate positions for each vert

i have a third list which contains values i want to add on top of these vert positions

i have this setup as a normal python script. But want to turn it into a API script so i can cycle through big meshes quickly.

so i wanted to plug this information into the setPoints function

geo.setPoints(diffList, OpenMaya.MSpace.kObject)

this doesn’t work, so im guessing i need to plug in the information for the vertex array? like shown in the guide:

setPoints (MFloatPointArray &vertexArray, MSpace::Space space=MSpace::kObject)

im not sure how i need to set this up. Could someone please show me how i can write this please?

thanks alot,
Sam


#2

I guess you made progress on that

http://forums.cgsociety.org/showthread.php?p=8274668