hi Olivier,
no it's still not working, my pymel/maya don't realize that center is
a function of pymel, i'll try to reinstall pymel at the weekend, but i
think center function will be a righte one,
i scripted
objFace=arrMesh.getPolygonVertices(arrCount[item])
pt1=arrMesh.vtx[objFace[0]].getPosition()
pt2=arrMesh.vtx[objFace[2]].getPosition()
centerPt=[ (pt1.x+pt2.x)/2,(pt1.y+pt2.y)/2,(pt1.z+pt2.z)/2 ]
pt1=arrMesh.vtx[objFace[1]].getPosition()
pt2=arrMesh.vtx[objFace[3]].getPosition()
centerPt2=[ (pt1[0]+pt2[0])/2,(pt1[1]+pt2[1])/2,(pt1[2]+pt2[2])/2 ]
pt1=centerPt
pt2=centerPt2
centerPtFace=[ (pt1[0]+pt2[0])/2,(pt1[1]+pt2[1])/2,(pt1[2]+pt2[2])/
2 ]
i think it's the same with pymel.center
Anyway Chad, Ofer and Olivier thank you very much for great support,
my debut in pymel was very successful.
All the Best!
Dimitry
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---