Blender 2.8 Python Tutorial : Units Settings

preview_player
Показать описание
In this video I show how to use the Blender 2.8 Python API to get the current unit settings and use it in your Blender addon.

I used it in my free JMesh Tools addon to be able to use real units for precise editing. The addon can be downloaded here from my github:

See my social profiles here:

Рекомендации по теме
Комментарии
Автор

Thanks for all your tutorials and the coding site

stevenpascoe
Автор

Nice. Very useful pieces of code. Thank you very much.

Автор

Good tutorial, please continue. Thank you!

taksinwatanabe
Автор

instead of a giant if/else that has to be run and calculated each time you need to display a unit, why not create a lookup table and pass in the length unit setting as the key? this way you calculate the lookup table once at startup and then pull the correct tuple out when it's needed. it would simplify get_current_units to a single line of code: return obviously youtube comments aren't the greatest place to discuss code with lack of formatting and whatnot but I guess you get the idea :P

ABentPaperclip
Автор

Can you create add-on that help to create add-ons visually or without coding using nodes??

memomind
welcome to shbcf.ru