mpfb_generate_rigify_rig
Convert a character's Rigify meta rig into a poseable generated rig, re-parenting and weighting whatever meshes are attached. Attach garments first; generation is not undoable.
Instructions
Turn a character's Rigify meta rig into a generated, poseable
Rigify rig - the second step of the two mpfb_add_rig starts when
given a rigify.* identifier.
Attach the character's garments and other mesh assets before calling
this. Generation re-parents and re-weights whatever is on the
character at the moment it runs, and nothing handles an asset added
afterwards. mesh_assets_present reports what was there.
Unlike the other character tools, name resolves to the meta rig
rather than to the basemesh, and metarig_name says which armature was
used. generated_rig_name is a basename, not the final object name:
omit it for MPFB's own fallback, which derives a unique name from the
meta rig's, and read rig_object_name for what it became.
meta_rig_action (default "hide", MPFB's own) is what becomes of the
meta rig afterwards: "keep" leaves it visible, "hide" keeps it in
the scene but out of viewport and renders, "delete" removes it.
Prefer "hide". Deleting the meta rig makes the character
permanently unrefittable: mpfb_refit_human can only refit a generated
Rigify rig through its meta rig, and with none in the scene it refits
the mesh assets, leaves the rig behind and says nothing.
refit_will_be_possible reports this either way.
This tool is not undoable and cannot restore your selection.
Generation's own last act is to select and activate the rig it made, so
active_object_after reports what is active now instead.
On generated: true, result carries rig_object_name,
metarig_name, metarig_disposition (kept/hidden/deleted),
refit_will_be_possible, mesh_assets_present and
active_object_after.
generated: false does not mean nothing happened, though
performed follows it. When Rigify judges the meta rig invalid it
returns after MPFB has already deselected everything, activated the
meta rig and possibly renamed it or run Rigify's face upgrade; that
case reports metarig_renamed and metarig_name_after beside the
refusal. Other refusals carry a blocked_by: subject_not_found,
no_armature_found, not_a_metarig (rigged, but not with a Rigify
meta rig), already_generated (generation moved this character onto
its generated rig, so its meta rig is no longer among its relatives),
rigify_unavailable and not_object_mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| meta_rig_action | No | hide | |
| generated_rig_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||