You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Python Scripting - Custom Draw Function / Layout Improvements


Darkfall writes:

In this video, we will be looking at improving the layouts of our Operators/Panels. By default, operator properties use an automatic user interface layout.

If you need more control you can create your own layout Function. It works like the Menu and Panel Draw Function.There are many ways in which we can alter or change the layout of our operator and I just wanted to share some basic improvements to make our Operators and Panels look much better.

We can add information, to tell the user if something is activated or display an icon. We can also restrict the visibility of text or Properties. I wanted to show the "Extrude Value" when the Extrude Boolean is Checked, otherwise the Property should be hidden.

I think small improvements like this to the layout not only make it look more appealing but it also helps the user understand what they are seeing. They are also not bombarded with tons of features or options that they might not even need.

If you want to download the Finished result, you can find the Download link in our blog!.

Blog Post is available here

About the Author

Avatar image for John Brook
John Brook

I make Youtube tutorials for blender Users. From CG and VFX to Animations, Shorts and Asset Creation. I upload tutorials once a week along with any assets we create for you to use in your own projects.

Leave A Reply

To add a profile picture to your message, register your email address with To protect your email address, create an account on BlenderNation and log in when posting a message.