Scripting a Custom Rig UI Add-on

Scripting a Custom Rig UI Add-on

When it comes to character rigging and animation, it’s always handy to have custom UI controls available to the animator. In this course Blender veteran, Bassam Kurdali, demonstrates how to add a custom rig UI to Blender’s tool panel using Python scripting.

Chapter 1 - Intro & First Steps

Chapter 2 - Quiz

Chapter 3 - Scripting

Chapter 4 - Quiz

Custom Rig Interfaces

Starting with some basic Python skills, it’s quite simple to begin building your own interfaces in Blender. These user interfaces can be anything from a collection of operators in the toolbar to dynamic properties based on your objects.

In this tutorial we’ll create a Python script that automatically generates a UI for character rigs, creating a more friendly workflow for the animator. This rig will be powered by Custom Properties on a few select bones. If you’re ever wondered what the “Custom Properties” are for on objects and bones, then you’re about to find out. It makes rigging all that much more powerful.

The script that we’ll be writing will create two UI panels, placing them into a new toolbar tab called ‘rigs’ in the Toolbar. The first panel will dynamically loop through the bones in an armature and display any custom properties it finds as sliders. The second panel will use some user-created properties to generate a very simple visibility panel for your controls, allowing you to easily hide or show groups of bones. As a final step, we’ll convert this script into an add-on for portability and convenience, allowing you to easily share it and let other artists use it too.

Among other things you will learn:

– How to use custom properties in an animation
– Find out how to use custom properties and drivers in a rig
– Learn to create a UI panel in Python
– UI Layout Features: prop() and operator()
– Using the Edit Source Button
– Using Python’s List Comprehensions
– Turning a script into an dd-on

Lesson Questions and Answers

Ask a question and get an answer!

Submit your Question
  • Replies: 1

    So, the cg cookie flex rig was done this way?(note: i didn’t take the course yet and i am just curious to know)

    4 months ago

    • Replies: 0

      Yes, the CGC Flex Rig has a custom rig ui addon that comes with it.

      4 months ago

  • Replies: 0

    thad:

    I have viewed several of Bassam’s lessons. Looks like they are instructive lessons, but without the model blend file, the lessons fail in delivering an easy to follow procedure.

    1 year ago

  • Replies: 0

    thad:

    At 1:18, you access an anim_start.blend file that you mentioned is available in the download files. I cannot find this model.

    1 year ago

  • Replies: 2

    there seems to be a sound problem in the video: on my side the sound stops playing for a big portion, and starts back after a while: of course this make me miss a big part of the explanation. is there a way to fix that?

    2 years ago

    • Replies: 1

      Not sure what’s going on- maybe there’s a tech support link you can mail?

      2 years ago

      • Ok I’ll try tech support.

        thank you

        2 years ago

    • Replies: 0

      I’m unable to replicate the sound issue. Which browser and OS are you using?

      2 years ago

  • Replies: 1

    Where I can file de .blend files for this course? Specially the rig that is using?

    2 years ago

    • Replies: 2

      These .blend files were Bassam’s from a commercial project he did. Which I assume he didn’t have the authority to share.

      2 years ago

      • Well, I recommend putting blend files so that we can follow along and know what we are doing

        4 months ago

      • @aboood319 – We certainly do that 99% of the time. This is one of the few exceptions. My apologies for the lack of .blend files for this course.

        4 months ago