Editing RIGIFY Rig Layers Panels in Script editor impossible in Blender 4.5?

Howdy, I just got a small issue that is normally pretty simple to cover up, but I cannot find an answer that doesn’t seem outdated.

I’m finishing a Rig for one of my characters using Rigify, and one thing I wanted to add is a few extra Bone Group panels in the Channel Box that comes with Rigify Script (for my case, I’d like to add more “Hair” Panels for different haircuts for my character)

The common technique to edit these panels after generating the rig would be to look at the Python script and edit the thing where it’s supposed to draw these attributes in the channel box. Problem is, in the recent versions of Rigify, the Python Script is different than before and I cannot find the area where to edit these layers.

If anybody has an answer to this I’ll take it,
Thanks in advance!

I spent some time with this panel about a month ago, with a friend who wanted to do something similar.

This can get a bit involved, but one thing I’ll point out: the blue buttons are not the Bone Collections. They just have the same name as the bone collections, as far as I could tell.

What you need to look for, in terms of technique and “how”, is adding custom properties to the layout panel which are associated with those bones (Long, ponytail, etc).

And unfortunately, I don’t have a link/source to offer on that… ultimately we went in another direction, and I didn’t get to the point of modifying and testing a final script.

hmm, I see.

For the older version, it was using bone collections though (the one with the weird 2x8 squares row thingy). But before generating the rig it was indeed changing the name of the panel as I was editing my bone collection assigned to it. Would that imply that there’s another script specifically for the moment we create the rigify before it gets generated? if that’s the case that would be unfortunate, but I think I’ll end up with another solution then. Thanks for the reply anyways!

you can add custom ui-buttons easy in the metarig:

  1. add your custom bone collections
  2. scoll down till you find ‘Bone Collections UI’ (3steps under generate rig)
    3.select there your custom collection and choose in ‘UI Row’ a row for your new button

Yeah, I did that for some collections I had in mind before making the rig, but now it’s generated, I would like to edit them without having to re-generate, but I cannot tweak it if I don’t re-genererate apparently

Somehow was never aware of that dropdown existing - thanks for the info there!