mpfb_list_objects
List MakeHuman objects in the current Blender scene, optionally filtered by MPFB type, to find names other MPFB tools can act on.
Instructions
List the MakeHuman objects in the connected Blender's current scene, optionally filtered by MPFB object type. Changes nothing.
Use this to find a subject for the other MPFB tools when you did not
create the character yourself, then pass a returned name to
mpfb_get_object_info to learn what that object actually is.
object_type is one of MPFB's own type names ("Basemesh",
"Skeleton", "Subrig", "Proxymeshes", "Clothes", "Eyes",
"Eyelashes", "Eyebrows", "Teeth", "Tongue", "Hair"); omit it
to get every MakeHuman object. Matching is MPFB's own, a
case-insensitive substring test rather than equality: "rig" matches
Subrig, and "mesh" matches both Basemesh and Proxymeshes. That
is deliberate on MPFB's side and is not a bug here.
Only the current scene is searched, so results match what the user is
looking at. An object that exists in the .blend without being linked
into the scene is not listed - mpfb_get_object_info will still
resolve it by name and say so.
result carries objects, one entry per match with name (the
Blender object name, which is how every other tool addresses it),
object_type (MPFB's type) and blender_type ("MESH", "ARMATURE",
...); count; requested_object_type, the filter as given or null;
object_type_recognized, whether it matched a type MPFB knows -
check this before concluding anything from an empty list, since
"no basemeshes in this scene" and "you asked for Basemseh" are
otherwise the same answer; and known_object_types, MPFB's full type
vocabulary read from MPFB itself, so a misspelling can be corrected
from this same response.
The result is an address other tools will act on. Re-call rather than cache: loading another .blend, or the user deleting an object, invalidates it entirely.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| object_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||