元編程參考文件

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
所屬包
電腦圖形