Create a Custom Blender Panel with less than 50 lines of Python code

preview_player
Показать описание
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

Using Python classes in Blender

Using Python Dictionaries in Blender

Space Types doc

Region Types doc

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:

#blender #python #scripting #tutorial #addon
Рекомендации по теме
Комментарии
Автор

This is phenomenal! Your speech is legible and easy to understand. Explanation is on point. Concise and clear.

dprintmudh
Автор

This tutorial was sooo good. It was a great starting point for me and now I've created a whole bunch of automation things and buttons to make work easier. Thank you very much!

Skeindem
Автор

amazing explanation, thank you so much ! I like your way to show how you would find the information (documentation, blender logs), it's very important for us to learn the process as well.

Cacapoulette
Автор

Excellent video! I'm not great with Blender's python API and this explained exactly what I needed to know.

PanopticGames
Автор

This guy is really saving me. Thanks a lot for the high-quality content and the clarity of your videos, bro

martafioravanti
Автор

Hey buddy. Amazing amazing work! It feels so good to have some blender python nerds (like myself) open YouTube channel! Kudos, and blissfully well done on the tutorials!

TheStrokeForge
Автор

Thank You for this great tutorial, I really appreciate the "style" and "tempo" as well as the chosen appropriatley "byte size" examples ;)
Best regards

onlyeyeno
Автор

Thanks for showing the basics of creating an add-on! I think you should do a course on Udemy or other such platforms as do many others judging by the comments! Keep up the great work!

mind_of_a_darkhorse
Автор

Thanks for this. Would love a video going over how to run custom operators on buttons.

npj
Автор

So good and clear tutorial...thank you !!!

vincentdecc
Автор

I enjoyed this tutorial, learned something new and hit the like button

arturertel
Автор

Круто, спасибо, мужик! То что надо..

Kotlinuxoid
Автор

thanks for your tutorial ! very useful .

GenTechArt
Автор

Thank you for this tutorial! I was wondering if you have a tutorial that covers texturing and displacement on a plane? I've been having a hard time trying to figure out how to import a texture while applying a displacement modifier to an object with the imported texture, all from an addon window. Thx.

cosmicoverlap
Автор

My Add on did not show in the Add on installation panel in the Edt > Preferences Tab. May be I didn't save it as a zipped file.

Gunat
Автор

Im at 4:49 and running the script just does nothing. Im incredibly confused.

Dedlus
Автор

Thanks for tips @CGPython Is it possible to set panel's default width? I was trying bl_ui_units_x but it's not working -_-

ngnash
Автор

Are you able to lets say create your own custom panel from 3 other addons?

Example If I have 3 lighting addons and would like to pick only certain features from them into a single panel?

jamesashworth
Автор

Can you teach us how to wrap a c++ code in Blender and make a custom floating panel?

paulblart
Автор

is there a way to create multiple buttons with one operator but with different parameters? I just want to create only one operator class, but inside execute block I want to read the parameter. I mean only buttons, without props. For example, Button 1 calls a parameter that Creates one sphere, and Button 2 calls the same parameter which creates two spheres. And only parameters changes (1 or 2)

veolenco