mpfb_apply_expressions
Apply saved MakeHuman expressions to a character through MPFB's expression stack, using merge or replace mode to add, update, remove, or clear weighted rows so they persist in presets.
Instructions
Put a MakeHuman character into saved expressions, through MPFB's
applied-expressions stack - the mechanism its expressions-library panel
and presets use, so the result survives mpfb_save_preset.
expressions is a list of {fragment, weight}: fragment as
mpfb_list_expressions reports it, weight in 0.0-1.0. Weight 0.0
removes that expression. mode is "merge" (default: add or update
these rows, keep the rest) or "replace" (the stack becomes exactly
these rows) - replace with an empty list takes every expression
off. Weights from several rows add up per face unit and are clamped
at 1.0.
Nothing is written unless every fragment resolves; the refusal
(blocked_by: "unresolved_fragments") names the misses and the closest
existing fragments. It also refuses without the faceunits01 pack.
The face is rebuilt from the stack, so units composed on top of it
with mpfb_set_face_units are discarded and named in
discarded_face_units - call mpfb_save_expression first to keep them.
refit (default true, as MPFB's library panel) refits the mesh assets and the rig.
result carries changed (the stack or the face moved), requested
(per row: action of added / updated /
removed / unchanged / absent, and resolved_path), the resulting stack
and face as mpfb_get_expression reports them (applied_expressions,
aggregate, clamped_face_units, matches_stack), stack_before,
removed_by_replace and panel_synced (MPFB's library sliders updated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | merge | |
| name | No | ||
| refit | No | ||
| expressions | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||