I can get the length of a vector this way:
my_vector.length
But I want to get the value in imperial units. How to do?
I can get the length of a vector this way:
my_vector.length
But I want to get the value in imperial units. How to do?
I found out
from space_view3d_panel_measure import getUnitsInfo, convertDistance
length = my_vector.length
uinfo = getUnitsInfo()
length = convertDistance(length, uinfo)
print(length)
thanks for the creators of the addon “space_view3d_panel_measure”