Rigify "Upgrade metarig" button not working on non Human (meta-rig) metarigs #105075

Closed
opened 2023-12-19 23:55:29 +01:00 by Corrado Piscitelli · 1 comment

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33

Blender Version
Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727
Worked: (newest version of Blender that worked as expected)

Short description of error
bpy.ops.armature.rigify_upgrade_layers() gives an error when trying to update a custom metarig.
It can even be as simple as just one bone with the "basic.super_copy" property.

Exact steps for others to reproduce the error
Create a simple metarig in blender 3.6.7 with just one bone, assign a "basic.super_copy" property to it and hit generate. Save file.
Open said file in blender 4.0.2 and try to press the "Upgrade metarig" on the metarig to use the new bone layers and you should get this error:

Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\ui.py", line 1081, in execute upgrade_metarig_layers(verify_armature_obj(context.active_object)) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\utils\rig.py", line 209, in upgrade_metarig_layers names = resolve_layer_names(layers) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\utils\rig.py", line 141, in resolve_layer_names if name := layer.get("name").strip(): AttributeError: 'NoneType' object has no attribute 'strip'

I have included a test file created in blender 3.6.7 for you tu try

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.33 **Blender Version** Broken: version: 4.0.2, branch: blender-v4.0-release, commit date: 2023-12-05 07:41, hash: 9be62e85b727 Worked: (newest version of Blender that worked as expected) **Short description of error** bpy.ops.armature.rigify_upgrade_layers() gives an error when trying to update a custom metarig. It can even be as simple as just one bone with the "basic.super_copy" property. **Exact steps for others to reproduce the error** Create a simple metarig in blender 3.6.7 with just one bone, assign a "basic.super_copy" property to it and hit generate. Save file. Open said file in blender 4.0.2 and try to press the "Upgrade metarig" on the metarig to use the new bone layers and you should get this error: `Python: Traceback (most recent call last): File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\ui.py", line 1081, in execute upgrade_metarig_layers(verify_armature_obj(context.active_object)) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\utils\rig.py", line 209, in upgrade_metarig_layers names = resolve_layer_names(layers) File "C:\Program Files\Blender Foundation\Blender 4.0\4.0\scripts\addons\rigify\utils\rig.py", line 141, in resolve_layer_names if name := layer.get("name").strip(): AttributeError: 'NoneType' object has no attribute 'strip'` I have included a test file created in blender 3.6.7 for you tu try
Corrado Piscitelli added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-12-19 23:55:29 +01:00
Member

@angavrilov can you please give some more info about how this should work?

@angavrilov can you please give some more info about how this should work?
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2023-12-21 11:13:59 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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#105075
No description provided.