A mesh Object has been translated/rotated/scaled.
We can check the vertex cordinate in 3dview-n pan.
But. When I try to calculate the Global coordinate form local coordinate myself. I have a wrong result.
Excuse.
import bpy
def main():
print('
')
C = bpy.context
aObj = C.active_object
if aObj == None:
print('No Mesh seleted')
return
vts = aObj.data.vertices
x = [i.index for i in vts if i.select==True][0]
if x == None:
print('1 Vertex selected at least')
return
wm = aObj.matrix_world.copy()
aP = vts[x].co * wm
print(' pointID: %s
local: %s
global: %s
maxtrix: %s' % (x, vts[x].co, aP, wm))
C.scene.cursor_location = aP #check position~
main()
Thanks for your help~