i find imperial is much easy or convenient to setup with camera distance from object a to b and eye level height

i want to set a hotkey that cycle through units ( metric , imperial ) hitting same hotkey instead of manually going to tab and click the desired units button

i tried to use wm.context_toggle_enum and type the following attributes but gives error context.scene.system , scene.system , UnitSettings.system , data.scene , data.scene.system or do i need a custom .py script in order to achieve the cycling of metric and imperial units

thank you for answer

enter image description here

  • $\begingroup$ Can't you just right-click on the measurement setting in the Properties panel and assign a hotkey? $\endgroup$ – Samoth Dec 13 '15 at 13:50

The path to use for the context Attribute is


Where you find a class name of UnitSettings is shown with it's name in CamelCase, you will often find a corresponding property that represents it will use the form unit_settings with all lowercase and underscore separating words.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.