Home Website Youtube GitHub

Extract Controls Error

Hello ! ( it’s me again)

Here it is, I want to Extract Controls, but when I select one, or all the controls, no matter which, I have an error message. "# Error: AttributeError: file C:\Program Files\Autodesk\Maya2020\modules\scripts\mgear\shifter\guide_manager.py line 132: ‘bool’ object has no attribute ‘name’ " I tried a lot of things, but this message appeared no matter what.( We even searched into that python file but found nothing.)
What does that mean please ? Thank you for help !

Do you have a controllers_org group? You should.

Or do you have more than one guide with more than one controllers_org in your scene? You should not. Or if you do, can you describe what you are doing, and then maybe it can be bug-fixed.

If I rename or delete or duplicate that group with the same name, I get the same error.

2 Likes

The code that is causing this is

When controllers_org doesn’t exist, or is not unique, cGrp = False. And then it tries to use False in the code below. For some reason TypeError isn’t causing the script to stop and fail at that point.

try:
    cGrp = pm.PyNode("controllers_org")
except TypeError:
    cGrp = False # <----- Right here.
    mgear.log(
        "Not controller group in the scene or the group is not unique",
        mgear.sev_error)

To support multiple rigs in the scene, the code would have to look at the control you’re trying to extract, see what rig it is parented under (if any), and then find the corresponding guide group. Then it could use the specific controllers_org for that guide.

2 Likes

Hello !

Ah yeah, the problem was I had severals controllers_org, because I tried several guide and kept them in my outline. I deleted the controllers_org from the old guide and it works without problem thank you !
Thank you for your solution in case I have several rig in my scene ! I note that down.
Thank you for your answer

Hey Chris. Where should this group be in the hierarchy? I don’t get one when using the biped template.

1 Like

Hey Ryan,

It should be directly under your “guide” top group. When you make a biped template, or any initial Shifter component, the “guide” group gets created, and “controllers_org” should be created.

I tested this in 3.6 and 3.7. And I remember it being true from 3.0 and 3.2

Do you see any errors or warnings when you first load a component or a biped template? Are you loading the biped template from the menu? Or perhaps through code somehow?

image

1 Like