mpfb_list_assets
Search installed MakeHuman assets in Blender by subdirectory, name keyword or asset pack. Lists garments, hair, skins and poses without adding them to the scene.
Instructions
Find the MakeHuman assets installed in this Blender - garments, hair,
eyes, eyebrows, eyelashes, teeth, tongue, body proxies, skins,
poses - narrowed by subdir, by a keyword in the name, and by asset
pack. Adds nothing to the scene. The forward counterpart of
mpfb_get_object_info, which says what an existing object was made
from.
The answer is capped and is usually a subset. Check truncated
before concluding an asset is not installed; total_count says how
many matched. The first call for a subdir is the slow one: MPFB loads a
preview image per asset, once per subdir per Blender session.
Arguments, all optional and combining with AND:
asset_subdir- one of"clothes","hair","eyes","eyebrows","eyelashes","teeth","tongue","proxymeshes","skins","poses","ink_layers", matched exactly and case-insensitively. Omit it to search every subdir, then readcounts_by_asset_subdirto pick a narrower one.name_contains- case-insensitive substring of the asset's name or label.pack- substring of an installed pack's name, so"hair03"findshair03_ccby.limit(default 200, max 1000) andoffset- paging over the matched set, sorted by subdir then name.refresh- rescan first. Needed only when assets were installed after Blender started; it rescans the whole library and writes MPFB's caches.
result carries:
assets: this page's entries, each withname(filename without extension),label(MPFB's display text),fragment,path,object_type,asset_subdir,file_type,pack,pack_ambiguousandthumb_path.counts_by_asset_subdir: how many assets each scanned subdir holds, ignoringname_contains,packand the cap.requested_asset_subdir/asset_subdir_recognized/known_asset_subdirsandrequested_pack/pack_recognized/known_packs, so a misspelling is distinguishable from an empty subdir or pack.asset_roots_searched: per subdir, the directories actually scanned. A configured data root that does not hold that subdir is not searched, which is the usual explanation for "I installed it and it is not listed".count,total_count,truncated,offset,limit.
How to name an asset when applying it. Pass an entry's path
(absolute) or its fragment ("fedora/fedora.mhclo", what MPFB
records on the resulting object and what survives a move to another
machine) to mpfb_add_asset, together with its object_type. Assets
in skins are materials rather than meshes and go to mpfb_set_skin
instead. A fragment is not a path; handing one to a file-opening
tool fails confusingly. For skins, poses and ink_layers the
object_type ("Material", "Pose", "Other") says what the asset
is rather than naming an argument.
pack is derived from a directory-name convention, not recorded by
MPFB. pack: null is ordinary for a hand-installed asset, and
pack_ambiguous: true means two packs claim the name and the reported
one is a coin toss. total_count can under-report too: MPFB's cache is
keyed by a label derived from the filename alone, so two assets whose
filenames differ only in case or underscores collapse into one entry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pack | No | ||
| limit | No | ||
| offset | No | ||
| refresh | No | ||
| asset_subdir | No | ||
| name_contains | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||