Rigify Encode MetaRig to Python Relink Constraints issue #84724

Closed
opened 2021-01-14 21:50:39 +01:00 by Brad Clark · 8 comments
Member

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: Quadro RTX 3000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67

Blender Version
Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: blender/blender@0f45cab862
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: Rigify (0, 6, 1)
Author: Nathan Vegdahl, Lucio Rossi, Ivan Cappiello, Alexander Gavrilov

Short description of error
Rigify allows you to "Relink constraints" and then you can create a custom constraint and name it etc... a core feature for the MetaRig to expand on the existing rigging.
The Tool Encode MetaRig to Python does store the setting "Relink Constraint" showing that it is on but doesn't store any code to save and reload the constraints that have been created and setup to for relinking. So if you have to delete and rebuild the MetaRig or if you want to save the custom meta rig to build from, all the constraints that are created for relinking get lost.

Exact steps for others to reproduce the error
Create a meta rig, pick the breast bone, turn on relink constraints and in pose mode add a constraint to the bone.
Swtich to edit mode and use the rigify tab to run Encode MetaRig to Python. The setting from Pose mode is saved that Relink is on but none of the constraints are stored.

**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: Quadro RTX 3000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 451.67 **Blender Version** Broken: version: 2.91.0, branch: master, commit date: 2020-11-25 08:34, hash: `blender/blender@0f45cab862` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: Rigify (0, 6, 1) Author: Nathan Vegdahl, Lucio Rossi, Ivan Cappiello, Alexander Gavrilov **Short description of error** Rigify allows you to "Relink constraints" and then you can create a custom constraint and name it etc... a core feature for the MetaRig to expand on the existing rigging. The Tool Encode MetaRig to Python does store the setting "Relink Constraint" showing that it is on but doesn't store any code to save and reload the constraints that have been created and setup to for relinking. So if you have to delete and rebuild the MetaRig or if you want to save the custom meta rig to build from, all the constraints that are created for relinking get lost. **Exact steps for others to reproduce the error** Create a meta rig, pick the breast bone, turn on relink constraints and in pose mode add a constraint to the bone. Swtich to edit mode and use the rigify tab to run Encode MetaRig to Python. The setting from Pose mode is saved that Relink is on but none of the constraints are stored.
Author
Member

Added subscriber: @BClark

Added subscriber: @BClark

Added subscriber: @TodorNikolov

Added subscriber: @TodorNikolov
Member

Added subscriber: @OmarEmaraDev

Added subscriber: @OmarEmaraDev
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Shouldn't constraints have special naming to make this work? I don't understand this myself, but the documentation seems to indicate that. See https://docs.blender.org/manual/en/latest/addons/rigging/rigify/rig_types/basic.html#basic-raw-copy.

Shouldn't constraints have special naming to make this work? I don't understand this myself, but the documentation seems to indicate that. See https://docs.blender.org/manual/en/latest/addons/rigging/rigify/rig_types/basic.html#basic-raw-copy.
Author
Member

I think this got fixed. This issue was about how the encode python script saves out the constraints that exist on the meta-rig. I can test it again but it should be working.

Raw copy is different. Relink constraints lets you replace targets with special naming.

I think this got fixed. This issue was about how the encode python script saves out the constraints that exist on the meta-rig. I can test it again but it should be working. Raw copy is different. Relink constraints lets you replace targets with special naming.
Author
Member

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Brad Clark self-assigned this 2022-03-11 16:05:19 +01:00
Author
Member

Encode MetaRig correctly stores the constraints to the python script.

Encode MetaRig correctly stores the constraints to the python script.
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#84724
No description provided.