archipack icon indicating copy to clipboard operation
archipack copied to clipboard

Input is always in meters even if scene units are set to cm/mm

Open aldanor opened this issue 5 years ago • 3 comments

This is a bit annoying, even if Archipack dimensions are shown as "123cm", you have to remember to always type "1.23" because it measures everything in meters and ignores your scene unit settings. Could it use the scene units instead for input?

aldanor avatar Jun 30 '19 14:06 aldanor

Unfortunately this is a blender limitation in FloatProperties. Units setup only change display, if you want to use anything else than meter you have to enter the unit by hand, eg 123cm. Perhaps report to blender dev's as this make some sense - unless "adaptive" units is set. Might at least try to implement this for manipulators.

s-leger avatar Jun 30 '19 14:06 s-leger

Hmm, I see. What's weird - in Blender's native translation tools, for example you can type "g z 20" and it will move it by 20cm, in this way it respects the units. I'm wondering if the current units/scale is available anywhere in the Blender's API?

aldanor avatar Jun 30 '19 16:06 aldanor

Under the hood, manipulators rely on transform.translate operator (same as g) so should work as native one out of the box. When you click on text values, text is passed to blender's interpreter for dimensions evaluations.

s-leger avatar Jun 30 '19 18:06 s-leger