mpfb_save_expression
Save a MakeHuman character's live face as a named expression file for reuse with apply_expressions and presets. Writes outside the .blend; character unchanged.
Instructions
Save a MakeHuman character's live face - every non-zero ARKit face unit
as a named expression file that
mpfb_apply_expressionscan apply and presets can carry. This writes a file outside the .blend, and nothing in Blender can undo it. The character is not changed.
expression_name is a name, never a path: the file is
<expression_name>.json in the expressions directory of MPFB's user
data, and path and fragment are in every answer. Same rule as preset
names: letters, digits, _, -, ., at most 64 characters, no leading
dot.
What is saved is the whole live face, including what applied
expressions contribute. To make it durable, call
mpfb_apply_expressions with mode: "replace" and the new fragment
at 1.0 - replace, not merge, or the stack counts twice. result's
apply_with holds exactly those arguments.
overwrite (default false) refuses an existing file
(blocked_by: "expression_exists", file_before giving its size and
age); the directory is shared with installed asset packs. Other
refusals, nothing written: name_shadowed (a same-named file in a
higher-priority data root would hide this one from MPFB for good -
shadowed_by names it), empty_expression (every unit is 0.0),
subject_not_found.
Optional metadata, stored as given: description, tags (list of
strings), author, copyright, license (default "CC0", MPFB's
composer default), homepage. On success result also carries
face_units and metadata as read back from the file, overwrote,
and panel_synced (whether MPFB's library panel gained the slider).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tags | No | ||
| author | No | ||
| license | No | CC0 | |
| homepage | No | ||
| copyright | No | ||
| overwrite | No | ||
| description | No | ||
| expression_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||