How do I get vertex coordinates in the same units as the scene units? I want to get the coordinates of a vertex in the correct units, millimeters in this case for the current model, to do some calculations in external to blender module.
When changing the units of a scene in blender 2.82 all fields in the UI show the correct size, for example 100mm and 1mm in object and edit modes. So a vertex will show the location of 1000mm in the default cube for example.
But when accessing the same coordinate through Python code as follows:
bpy.data.objects['Cube'].data.vertices[x].co the data that we will get for the same vertex will be 1.0, meaning it remains in meters.
Any ideas as to how to get the coordinates/sizes in the correct units in Blender Python API?
I think the question is mathematically inaccurate. Your coordinates are defined by magnitude and direction. To add a scale factor like mm or m you need to multiply these unit vector values with constants.