mpfb_get_expression
Read which saved expressions a MakeHuman character wears and whether they explain its live face, without changes. Compare applied stack vs live face units to find unexplained differences.
Instructions
Read which saved expressions a MakeHuman character is wearing (MPFB's
applied-expressions stack) and whether they explain its live face.
Changes nothing. For the raw live face-unit values, call
mpfb_get_face_units; this tool reports only how they differ from the
stack.
result's applied_expressions is one row per expression: fragment,
weight, resolved and path. A row whose file cannot be found or
read (resolved: false, counted in unresolved_count) contributes
nothing to the face. aggregate is the face the stack produces;
clamped_face_units names units whose sum across rows passed 1.0.
matches_stack is false when the live face differs from
aggregate; unexplained_face_units then lists each such unit with
its live and from_stack values. That is composed work (see
mpfb_set_face_units) that the next mpfb_apply_expressions call or
preset load will overwrite; mpfb_save_expression keeps it.
faceunits01_installed is always present; refresh re-probes for it.
An unresolvable subject is found: false, not an error;
basemesh_name names the object actually read.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| refresh | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||