元编程参考文档

Characters

30 个节点

本页内容 30

Assets

函数

The names of the assets of one kind: skin, eyes, eyematerial, eyebrows, eyelashes, hair, teeth, tongue, clothes, proxy, pose, animation, rig.

签名
Assets(kind: 文本) -> 文本数组
string[] Assets(string kind = "clothes")

参数

名称类型默认值说明
kind文本clothes

返回

结果文本数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Body

函数

The body's main proportions.

签名
Body -> HumanDescription
    human: HumanDescription
    gender: 数字
    ageYears: 数字
    muscle: 数字
    weight: 数字
    height: 数字
    proportions: 数字
HumanDescription Body(
    HumanDescription human,
    double gender = 0.5,
    double ageYears = 25,
    double muscle = 0.5,
    double weight = 0.5,
    double height = 0.5,
    double proportions = 0.5)

参数

名称类型默认值说明
humanHumanDescription—The human.
gender数字0.50 female, 1 male.
ageYears数字25Age, 1 to 90 years.
muscle数字0.50 to 1, 0.5 average.
weight数字0.50 to 1, 0.5 average.
height数字0.50 to 1, 0.5 average for the age and gender.
proportions数字0.50 uncommon, 1 ideal, 0.5 neutral.

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Breasts

函数

Breast size and firmness, 0 to 1, 0.5 average.

签名
Breasts -> HumanDescription
    human: HumanDescription
    size: 数字
    firmness: 数字
HumanDescription Breasts(
    HumanDescription human,
    double size = 0.5,
    double firmness = 0.5)

参数

名称类型默认值说明
humanHumanDescription—
size数字0.5
firmness数字0.5

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Element

函数

The human as a 3D Staging element, to place, light and render in a scene.

签名
Element -> Scene Element
    human: HumanDescription
    textures: 真否
SceneElement Element(
    HumanDescription human,
    bool textures = true)

参数

名称类型默认值说明
humanHumanDescription—
textures真否True

返回

结果Scene Element
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Ethnicity

函数

The ethnic mix, normalised so the three sum to one.

签名
Ethnicity -> HumanDescription
    human: HumanDescription
    african: 数字
    asian: 数字
    caucasian: 数字
HumanDescription Ethnicity(
    HumanDescription human,
    double african = 0.3333333333333333,
    double asian = 0.3333333333333333,
    double caucasian = 0.3333333333333333)

参数

名称类型默认值说明
humanHumanDescription—
african数字0.3333333333333333
asian数字0.3333333333333333
caucasian数字0.3333333333333333

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Export Glb

函数

Saves the human as glTF (GLB): skinned, with the pose on its skeleton, or Baked into a static mesh. Returns the path.

签名
ExportGlb -> 文本
    human: HumanDescription
    path: 文本
    bake: 真否
string ExportGlb(
    HumanDescription human,
    string path,
    bool bake = false)

参数

名称类型默认值说明
humanHumanDescription—
path文本—
bake真否False

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Export Obj

函数

Saves the human as it is shown as OBJ with its MTL, +Z up unless Y Up. Returns the path.

签名
ExportObj -> 文本
    human: HumanDescription
    path: 文本
    yUp: 真否
string ExportObj(
    HumanDescription human,
    string path,
    bool yUp = false)

参数

名称类型默认值说明
humanHumanDescription—
path文本—
yUp真否False

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Expression

函数

A face expression from face pose units by name (LeftCheekUp, …) and weights from 0 to 1; empty units for a neutral face.

签名
Expression -> HumanDescription
    human: HumanDescription
    units: 文本数组
    weights: 数字数组
HumanDescription Expression(
    HumanDescription human,
    string[] units,
    double[] weights)

参数

名称类型默认值说明
humanHumanDescription—
units文本数组—
weights数字数组—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Eyebrows

函数

Eyebrows, or empty for none.

签名
Eyebrows -> HumanDescription
    human: HumanDescription
    eyebrows: 文本
HumanDescription Eyebrows(
    HumanDescription human,
    string eyebrows = "eyebrow001")

参数

名称类型默认值说明
humanHumanDescription—
eyebrows文本eyebrow001

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Eye Color

函数

The eyes' colour, by eye material name (brown, blue, …).

签名
EyeColor -> HumanDescription
    human: HumanDescription
    material: 文本
HumanDescription EyeColor(
    HumanDescription human,
    string material = "brown")

参数

名称类型默认值说明
humanHumanDescription—
material文本brown

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Eyelashes

函数

Eyelashes, or empty for none.

签名
Eyelashes -> HumanDescription
    human: HumanDescription
    eyelashes: 文本
HumanDescription Eyelashes(
    HumanDescription human,
    string eyelashes = "eyelashes01")

参数

名称类型默认值说明
humanHumanDescription—
eyelashes文本eyelashes01

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Face

函数

A named face at an amount from 0 to 1: smile, grin, laugh, sad, angry, surprised, afraid, disgusted, thinking, kiss, wink, eyes-closed, tongue-out; empty for a neutral face.

签名
Face -> HumanDescription
    human: HumanDescription
    face: 文本
    amount: 数字
HumanDescription Face(
    HumanDescription human,
    string face = "smile",
    double amount = 1)

参数

名称类型默认值说明
humanHumanDescription—
face文本smile
amount数字1

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Hair

函数

A hairstyle, or empty for none.

签名
Hair(human: HumanDescription, hair: 文本) -> HumanDescription
HumanDescription Hair(HumanDescription human, string hair = "")

参数

名称类型默认值说明
humanHumanDescription—
hair文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Height Centimetres

函数

How tall the human stands, unposed, in centimetres.

签名
HeightCentimetres(human: HumanDescription) -> 数字
double HeightCentimetres(HumanDescription human)

参数

名称类型默认值说明
humanHumanDescription—

返回

结果数字
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Human

函数

A new human: every macro at its default, with eyes, brows, lashes, teeth and tongue unless Bare.

签名
Human(name: 文本, bare: 真否) -> HumanDescription
HumanDescription Human(string name = "Human", bool bare = false)

参数

名称类型默认值说明
name文本HumanIts name.
bare真否FalseLeave out the eyes, brows, lashes, teeth and tongue.

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Modifier

函数

Any modifier by name (nose/nose-scale-horiz-decr|incr); hyu modifiers lists them. Mirrored to its other side when the human is symmetric.

签名
Modifier -> HumanDescription
    human: HumanDescription
    modifier: 文本
    value: 数字
HumanDescription Modifier(
    HumanDescription human,
    string modifier,
    double value)

参数

名称类型默认值说明
humanHumanDescription—
modifier文本—
value数字—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Modifiers

函数

Several modifiers at once, name for value.

签名
Modifiers -> HumanDescription
    human: HumanDescription
    modifiers: 文本数组
    values: 数字数组
HumanDescription Modifiers(
    HumanDescription human,
    string[] modifiers,
    double[] values)

参数

名称类型默认值说明
humanHumanDescription—
modifiers文本数组—
values数字数组—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Open

函数

Opens a .hyu document or a MakeHuman .mhm.

签名
Open(path: 文本) -> HumanDescription
HumanDescription Open(string path)

参数

名称类型默认值说明
path文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Pose

函数

A pose by name (sit01, fight01, tpose, …), or empty for the rest pose; an animation's frame by number.

签名
Pose -> HumanDescription
    human: HumanDescription
    pose: 文本
    frame: 整数
    keepOnFloor: 真否
HumanDescription Pose(
    HumanDescription human,
    string pose = "",
    int frame = 0,
    bool keepOnFloor = true)

参数

名称类型默认值说明
humanHumanDescription—
pose文本—
frame整数0
keepOnFloor真否True

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Problems

函数

What the evaluation could not do, in sentences: a missing asset, an unknown modifier.

签名
Problems(human: HumanDescription) -> 文本数组
string[] Problems(HumanDescription human)

参数

名称类型默认值说明
humanHumanDescription—

返回

结果文本数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Randomize

函数

A random human from a seed: the same seed always gives the same human.

签名
Randomize -> HumanDescription
    human: HumanDescription
    seed: 整数
    gender: 数字
    minimumAge: 数字
    maximumAge: 数字
    variety: 数字
HumanDescription Randomize(
    HumanDescription human,
    int seed = 1,
    double gender = -1,
    double minimumAge = 18,
    double maximumAge = 70,
    double variety = 0.5)

参数

名称类型默认值说明
humanHumanDescription—The human whose assets, rig and pose are kept.
seed整数1The seed.
gender数字-1A fixed gender from 0 to 1, or -1 for either.
minimumAge数字18The youngest, in years.
maximumAge数字70The oldest, in years.
variety数字0.5How far detail modifiers stray, 0 to 1.

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Rig

函数

The skeleton: default, default_no_toes, game_engine, game_engine_with_breast, mixamo, mixamo_unity, cmu_mb, openpose, or empty for none.

签名
Rig(human: HumanDescription, rig: 文本) -> HumanDescription
HumanDescription Rig(
    HumanDescription human,
    string rig = "default")

参数

名称类型默认值说明
humanHumanDescription—
rig文本default

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Save

函数

Saves the human as a .hyu document, or as MakeHuman's .mhm when the path ends so. Returns the path.

签名
Save(human: HumanDescription, path: 文本) -> 文本
string Save(HumanDescription human, string path)

参数

名称类型默认值说明
humanHumanDescription—
path文本—

返回

结果文本
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Skin

函数

The skin material: a skin's name, or empty for the default skin that follows the ethnic mix.

签名
Skin(human: HumanDescription, skin: 文本) -> HumanDescription
HumanDescription Skin(HumanDescription human, string skin = "")

参数

名称类型默认值说明
humanHumanDescription—
skin文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Smile

函数

A smile, from 0 to 1: both cheeks and mouth corners raised.

签名
Smile(human: HumanDescription, amount: 数字) -> HumanDescription
HumanDescription Smile(
    HumanDescription human,
    double amount = 0.7)

参数

名称类型默认值说明
humanHumanDescription—
amount数字0.7

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Symmetry

函数

Whether editing one side of the body edits the other.

签名
Symmetry -> HumanDescription
    human: HumanDescription
    symmetric: 真否
HumanDescription Symmetry(
    HumanDescription human,
    bool symmetric = true)

参数

名称类型默认值说明
humanHumanDescription—
symmetric真否True

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Take Off

函数

A garment taken off.

签名
TakeOff -> HumanDescription
    human: HumanDescription
    garment: 文本
HumanDescription TakeOff(HumanDescription human, string garment)

参数

名称类型默认值说明
humanHumanDescription—
garment文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Topology

函数

A replacement body topology (proxy741, female_generic, …), or empty for the base mesh.

签名
Topology -> HumanDescription
    human: HumanDescription
    proxy: 文本
HumanDescription Topology(
    HumanDescription human,
    string proxy = "")

参数

名称类型默认值说明
humanHumanDescription—
proxy文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Turn Bone

函数

A bone turned by hand on top of the pose, in degrees about X, Y and Z of the character's own frame, by default-rig bone name (head, upperarm02.L, …).

签名
TurnBone -> HumanDescription
    human: HumanDescription
    bone: 文本
    x: 数字
    y: 数字
    z: 数字
HumanDescription TurnBone(
    HumanDescription human,
    string bone,
    double x = 0,
    double y = 0,
    double z = 0)

参数

名称类型默认值说明
humanHumanDescription—
bone文本—
x数字0
y数字0
z数字0

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形

Wear

函数

A garment put on; already worn, nothing changes.

签名
Wear(human: HumanDescription, garment: 文本) -> HumanDescription
HumanDescription Wear(HumanDescription human, string garment)

参数

名称类型默认值说明
humanHumanDescription—
garment文本—

返回

结果HumanDescription
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
Characters
所属包
计算机图形