3dsmax - Maxscript: How can I change the format of vertex locations from generic units to meters? -


thanks taking time @ question.

i trying change output of vertex positions generic units meters. found following code (slightly modified) different question. correctly outputs vertex positions in generic units. how can make output in meters?

vertdatafile = createfile ((getdir #export)+"/vertex position data 20.txt")  in geometry classof == editable_poly ( j = 1 (polyop.getnumverts i) format "%" (" \n " +  (polyop.getvert j node:i string)) to:vertdatafile format "\n" to:vertdatafile ) 

i found question similar mine, couldn't make sense out of it. get distance in meters maxscript

the answer setting unit type meters in preferences of 3ds max. also, under customize -> units setup -> system unit setup -> 1 unit = 1.0 needs set "meters." further, 3ds max needs reset (soft reset) , geometry needs re-imported. next, file must adopt current setting applied. not re-adopt files scale or mess again.


Comments