In this video tutorial, I’ll guide you through creating a custom panel that will appear right in the sidebar of your 3D viewport.
I’ll take you through all the necessary steps to create your very own panel, from start to finish. I’ll show you how to turn your custom panel into a convenient add-on that you can use whenever you need it.
Final Code
https://github.com/CGArtPython/blender_plus_python/blob/main/add-ons/simple_custom_panel/simple_custom_panel.py
Using Python classes in Blender
Using Python Dictionaries in Blender
Space Types doc
https://docs.blender.org/api/current/bpy_types_enum_items/space_type_items.html#rna-enum-space-type-items
Region Types doc
https://docs.blender.org/api/current/bpy_types_enum_items/region_type_items.html#rna-enum-region-type-items
00:00 – Intro
00:53 – Go over the steps
01:24 – Create the panel class
03:53 – Register the panel class
05:11 – Finish defining the panel labels and UI layout
07:56 – Exercise
09:02 – Wrap the panel in an add-on
Assets used:
Register icons created by Pixel perfect – Flaticon https://www.flaticon.com/free-icons/register
#blender #python #scripting #tutorial #addon
Create a Custom Blender Panel with less than 50 lines of Python code
- Price type: Free