Rigify error, elaboration please #62013

Closed
opened 2019-02-27 13:33:26 +01:00 by Frosted · 11 comments

System Information
Operating system: Win10
Graphics card: GTX 1070 Ti

Blender Version
Broken:2.79b
Worked: (optional)

Short description of error
Cant generate rig. It gives an error

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\ui.py", line 756, in execute
  generate.generate_rig(context, context.object)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\generate.py", line 361, in generate_rig
  raise e
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\generate.py", line 349, in generate_rig
  scripts = rig.generate()
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\rigs\spines\super_spine.py", line 974, in generate
  bones['def'] = self.create_deform()     # Gets org bones from self
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\rigs\spines\super_spine.py", line 180, in create_deform
  def_name = copy_bone(self.obj, org_b, def_name)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\utils.py", line 307, in copy_bone
  for key in prop1.keys():

AttributeError: 'NoneType' object has no attribute 'keys'

location: :-1

FroppyBefore.blend

**System Information** Operating system: Win10 Graphics card: GTX 1070 Ti **Blender Version** Broken:2.79b Worked: (optional) **Short description of error** Cant generate rig. It gives an error Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\ui.py", line 756, in execute generate.generate_rig(context, context.object) File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\generate.py", line 361, in generate_rig raise e File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\generate.py", line 349, in generate_rig scripts = rig.generate() File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\rigs\spines\super_spine.py", line 974, in generate bones['def'] = self.create_deform() # Gets org bones from self File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\rigs\spines\super_spine.py", line 180, in create_deform def_name = copy_bone(self.obj, org_b, def_name) File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\utils.py", line 307, in copy_bone for key in prop1.keys(): ``` AttributeError: 'NoneType' object has no attribute 'keys' location: <unknown location>:-1 [FroppyBefore.blend](https://archive.blender.org/developer/F6723650/FroppyBefore.blend)
Author

Added subscriber: @Trey-Holmes

Added subscriber: @Trey-Holmes
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

You need to be a bit more precise about the Blender version you use and what the error actually is.
Please copy the error from the console.

You need to be a bit more precise about the Blender version you use and what the error actually is. Please copy the error from the console.
Author

Sorry i edit the original post

Sorry i edit the original post
Member

Can you reproduce the issue in a new file?
Did you maybe remove some custom property on the bones?

(I'm just guessing, don't really know how Rigify works internally)

Can you reproduce the issue in a new file? Did you maybe remove some custom property on the bones? (I'm just guessing, don't really know how Rigify works internally)

Added subscriber: @solartistic

Added subscriber: @solartistic

Removing all face bones makes it work, so I guess you messed something with the bone placement in the face area.
If I were you I would try to adjust the metarig once again with paying attention to which bone stands for what and where it should be placed. I'm sure there are some tutorials for that.

You may also want to apply the scale of your meshes and the metarig before rigging.

BTW 1 blender unit is 1 meter so your character is 50 meters tall

Removing all face bones makes it work, so I guess you messed something with the bone placement in the face area. If I were you I would try to adjust the metarig once again with paying attention to which bone stands for what and where it should be placed. I'm sure there are some tutorials for that. You may also want to apply the scale of your meshes and the metarig before rigging. BTW 1 blender unit is 1 meter so your character is 50 meters tall
Author

It might be that the mouth isnt related to the shape of a normal human is causing problems. I havent deleted any bones (or i think i havent) i try messing with it later and post results

It might be that the mouth isnt related to the shape of a normal human is causing problems. I havent deleted any bones (or i think i havent) i try messing with it later and post results
Member

Added subscriber: @icappiello

Added subscriber: @icappiello
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Ivan Cappiello self-assigned this 2019-03-14 12:34:45 +01:00
Member

This is not a Rigify bug. Cannot reproduce it except generating from your file.
This usually happens when you remove/unparent/parent some face bones. Unfortunately the current face sample has this limitation: you can only move the bones to correct position according to your model. You cannot rename/unparent/remove any bone or the generate function will fail. This is going to be addressed in rigify 0.6 but for now the easiest way to fix is remove completely the face bones (make only armature layer 1 visible, select all bones on layer 1 and delete it) and re add a face sample (in edit mode select and add the superface sample). Then reposition the bones paying attention to not remove or reparent anything except for the small face bone that has to be parented to the spine.006 bone.
Moreover, you should either apply the scale in object mode since the armature object appears to be scaled up as pointed in previous posts.
Try to follow more accurately the rigify wiki

Cheers,
Ivan

This is not a Rigify bug. Cannot reproduce it except generating from your file. This usually happens when you remove/unparent/parent some face bones. Unfortunately the current face sample has this limitation: you can only move the bones to correct position according to your model. You cannot rename/unparent/remove any bone or the generate function will fail. This is going to be addressed in rigify 0.6 but for now the easiest way to fix is remove completely the face bones (make only armature layer 1 visible, select all bones on layer 1 and delete it) and re add a face sample (in edit mode select and add the superface sample). Then reposition the bones paying attention to not remove or reparent anything except for the small face bone that has to be parented to the spine.006 bone. Moreover, you should either apply the scale in object mode since the armature object appears to be scaled up as pointed in previous posts. Try to follow more accurately the [rigify wiki ](https://archive.blender.org/wiki/index.php/Extensions:2.6/Py/Scripts/Rigging/Rigify/) Cheers, Ivan
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#62013
No description provided.