Rigify: Error generating rig after deleting teeth and tongue bones #102490

Open
opened 2022-11-14 03:42:57 +01:00 by Mayaprakash Pant · 8 comments

System Information
Operating system: Windows 10
Graphics card:

Blender Version
Broken: Latest version 3.3.1 LTS (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen)
Worked: (newest version of Blender that worked as expected)

Short description of error
Hello there. I intentionally deleted the bones for teeth and tongues, while using the rigify add-on. I am using the human meta rig. I was not aware of this previously. Those bones were completely unnecessary, so I thought I would simply remove them. While trying to generate the rig, it is giving errors like those particular bones not found type of error. I cannot recover the file because this mistake was done in the earlier stage. So, it's lost. Besides that, for the missing teeth part, I recreated bones, renamed them, and parented to the spine, so the error was gone. But for the tongue, I added another bone, named it tongue, then extruded it, like making tongue.001 to tongue.003. I parented this tongue to face bones, same error. Has anybody ever faced this? I even tried transferring the constraints from a duplicate meta rig, did copying pasting things, nothing is working. Need help sorting this out, will be grateful. Thanks!

Clear rig animation data.
Create widgets collection: 0.001
Duplicate rig: 0.009
Rigify: failed to generate rig.
Traceback (most recent call last):
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\ui.py", line 798, in execute
    generate.generate_rig(context, metarig)
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 629, in generate_rig
    raise e
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 617, in generate_rig
    generator.generate()
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 466, in generate
    self.instantiate_rig_tree()
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 526, in instantiate_rig_tree
    self.__create_rigs(self.org_rename_table[name], halt_on_missing)
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 450, in __create_rigs
    rigs = [self.instantiate_rig(rig_class, pose_bone)]
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 419, in instantiate_rig
    return LegacyRig(self, pose_bone, rig_class)
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 108, in __init__
    super().__init__(generator, pose_bone)
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_rig.py", line 187, in __init__
    org=self.find_org_bones(pose_bone),
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 114, in find_org_bones
    self.wrapped_rig = self.wrapped_class(self.obj, self.base_bone, self.params)
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\rigs\faces\super_face.py", line 46, in __init__
    grand_children += connected_children_names( self.obj, child )
  File "C:\BlenderDev\blender\release\scripts\addons\rigify\utils\rig.py", line 151, in connected_children_names
    bone = obj.data.bones[bone_name]
KeyError: 'bpy_prop_collection[key]: key "ORG-teeth.T" not found'
Error: Generation has thrown an exception: 'bpy_prop_collection[key]: key "ORG-teeth.T" not found'

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

  1. Enable the rigify add-on
  2. Add a meta rig
  3. delete the teeth and tongue bones.
  4. Click on the "Generate Rig" option and you will get the error.
**System Information** Operating system: Windows 10 Graphics card: **Blender Version** Broken: Latest version 3.3.1 LTS (example: 2.80, edbf15d3c044, master, 2018-11-28, as found on the splash screen) Worked: (newest version of Blender that worked as expected) **Short description of error** Hello there. I intentionally deleted the bones for teeth and tongues, while using the rigify add-on. I am using the human meta rig. I was not aware of this previously. Those bones were completely unnecessary, so I thought I would simply remove them. While trying to generate the rig, it is giving errors like those particular bones not found type of error. I cannot recover the file because this mistake was done in the earlier stage. So, it's lost. Besides that, for the missing teeth part, I recreated bones, renamed them, and parented to the spine, so the error was gone. But for the tongue, I added another bone, named it tongue, then extruded it, like making tongue.001 to tongue.003. I parented this tongue to face bones, same error. Has anybody ever faced this? I even tried transferring the constraints from a duplicate meta rig, did copying pasting things, nothing is working. Need help sorting this out, will be grateful. Thanks! ``` Clear rig animation data. Create widgets collection: 0.001 Duplicate rig: 0.009 Rigify: failed to generate rig. Traceback (most recent call last): File "C:\BlenderDev\blender\release\scripts\addons\rigify\ui.py", line 798, in execute generate.generate_rig(context, metarig) File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 629, in generate_rig raise e File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 617, in generate_rig generator.generate() File "C:\BlenderDev\blender\release\scripts\addons\rigify\generate.py", line 466, in generate self.instantiate_rig_tree() File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 526, in instantiate_rig_tree self.__create_rigs(self.org_rename_table[name], halt_on_missing) File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 450, in __create_rigs rigs = [self.instantiate_rig(rig_class, pose_bone)] File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 419, in instantiate_rig return LegacyRig(self, pose_bone, rig_class) File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 108, in __init__ super().__init__(generator, pose_bone) File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_rig.py", line 187, in __init__ org=self.find_org_bones(pose_bone), File "C:\BlenderDev\blender\release\scripts\addons\rigify\base_generate.py", line 114, in find_org_bones self.wrapped_rig = self.wrapped_class(self.obj, self.base_bone, self.params) File "C:\BlenderDev\blender\release\scripts\addons\rigify\rigs\faces\super_face.py", line 46, in __init__ grand_children += connected_children_names( self.obj, child ) File "C:\BlenderDev\blender\release\scripts\addons\rigify\utils\rig.py", line 151, in connected_children_names bone = obj.data.bones[bone_name] KeyError: 'bpy_prop_collection[key]: key "ORG-teeth.T" not found' Error: Generation has thrown an exception: 'bpy_prop_collection[key]: key "ORG-teeth.T" not found' ``` **Exact steps for others to reproduce the error** Based on the default startup or an attached .blend file (as simple as possible). 1. Enable the rigify add-on 3. Add a meta rig 4. delete the teeth and tongue bones. 6. Click on the "Generate Rig" option and you will get the error.

Added subscriber: @MaxDai

Added subscriber: @MaxDai

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

In fact, an error appears.
I was able to confirm the problem without having to model a humanoid mesh.

In fact, an error appears. I was able to confirm the problem without having to model a humanoid mesh.
Germano Cavalcante changed title from Problems with Rigify Add-on to Rigify: Error generating rig after deleting teeth and tongue bones 2022-11-14 14:34:14 +01:00

In #102490#1445730, @mano-wii wrote:
In fact, an error appears.
I was able to confirm the problem without having to model a humanoid mesh.

Did you find a solution?

> In #102490#1445730, @mano-wii wrote: > In fact, an error appears. > I was able to confirm the problem without having to model a humanoid mesh. Did you find a solution?

I confirmed the bug, now it is up to some developer or the author of the addon to fix the bug.

I confirmed the bug, now it is up to some developer or the author of the addon to fix the bug.

In #102490#1445789, @mano-wii wrote:
I confirmed the bug, now it is up to some developer or the author of the addon to fix the bug.

Thanks for the work. I found a solution hard way observing a fresh meta rig from scratch. The solution to this is long. I posted the solution on a video here:

https://www.youtube.com/watch?v=m8S8G2zeEQ8

> In #102490#1445789, @mano-wii wrote: > I confirmed the bug, now it is up to some developer or the author of the addon to fix the bug. Thanks for the work. I found a solution hard way observing a fresh meta rig from scratch. The solution to this is long. I posted the solution on a video here: https://www.youtube.com/watch?v=m8S8G2zeEQ8

Same problem and same mental journey when I just trying to add bones to a capybara using the cat's bone, I spent the whole night and receive an error hhhhhh. Even chat-GPT also don't know how to fix it, motional damage QAQ

Same problem and same mental journey when I just trying to add bones to a capybara using the cat's bone, I spent the whole night and receive an error hhhhhh. Even chat-GPT also don't know how to fix it, motional damage QAQ
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#102490
No description provided.