Hi everyone Im VERY newbie on Pymel.
Usually, im using maya on "Meter" linear unit. Now Im writing script using polygon vertex for layouting object, and I need vertex position also in Meter, but i realized vertex position got by getPoints method is centimeter value. for example, import pymel.core as pm import pprint ptrans = pm.polyPlane(height=1, width=1, subdivisionsHeight=1, subdivisionsWidth=1)[0] pshape = ptrans.getShape() pshape.getPoints() pprint.pprint(pshape.getPoints()) this is output on "cemtimeter" unit [dt.Point([-0.5, -1.11022302463e-16, 0.5]), dt.Point([0.5, -1.11022302463e-16, 0.5]), dt.Point([-0.5, 1.11022302463e-16, -0.5]), dt.Point([0.5, 1.11022302463e-16, -0.5])] and on "meter" [dt.Point([-50.0, -1.11022302463e-14, 50.0]), dt.Point([50.0, -1.11022302463e-14, 50.0]), dt.Point([-50.0, 1.11022302463e-14, -50.0]), dt.Point([50.0, 1.11022302463e-14, -50.0])] Is this expected result? I should always devide postion by 100 when Im in meter unit? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/995af80a-35f0-4056-ab13-5c3d7e81e197%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
