Divooka Reference

Characters

30 nodes

On this page 30

Assets

Function

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

Signature
Assets(kind: Text) -> Text Array
string[] Assets(string kind = "clothes")

Parameters

nametypedefaultdescription
kindTextclothes

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Body

Function

The body's main proportions.

Signature
Body -> HumanDescription
    human: HumanDescription
    gender: Number
    ageYears: Number
    muscle: Number
    weight: Number
    height: Number
    proportions: Number
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)

Parameters

nametypedefaultdescription
humanHumanDescription—The human.
genderNumber0.50 female, 1 male.
ageYearsNumber25Age, 1 to 90 years.
muscleNumber0.50 to 1, 0.5 average.
weightNumber0.50 to 1, 0.5 average.
heightNumber0.50 to 1, 0.5 average for the age and gender.
proportionsNumber0.50 uncommon, 1 ideal, 0.5 neutral.

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Breasts

Function

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

Signature
Breasts -> HumanDescription
    human: HumanDescription
    size: Number
    firmness: Number
HumanDescription Breasts(
    HumanDescription human,
    double size = 0.5,
    double firmness = 0.5)

Parameters

nametypedefaultdescription
humanHumanDescription—
sizeNumber0.5
firmnessNumber0.5

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Element

Function

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

Signature
Element -> Scene Element
    human: HumanDescription
    textures: Truth
SceneElement Element(
    HumanDescription human,
    bool textures = true)

Parameters

nametypedefaultdescription
humanHumanDescription—
texturesTruthTrue

Returns

resultScene Element
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Ethnicity

Function

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

Signature
Ethnicity -> HumanDescription
    human: HumanDescription
    african: Number
    asian: Number
    caucasian: Number
HumanDescription Ethnicity(
    HumanDescription human,
    double african = 0.3333333333333333,
    double asian = 0.3333333333333333,
    double caucasian = 0.3333333333333333)

Parameters

nametypedefaultdescription
humanHumanDescription—
africanNumber0.3333333333333333
asianNumber0.3333333333333333
caucasianNumber0.3333333333333333

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Export Glb

Function

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

Signature
ExportGlb -> Text
    human: HumanDescription
    path: Text
    bake: Truth
string ExportGlb(
    HumanDescription human,
    string path,
    bool bake = false)

Parameters

nametypedefaultdescription
humanHumanDescription—
pathText—
bakeTruthFalse

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Export Obj

Function

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

Signature
ExportObj -> Text
    human: HumanDescription
    path: Text
    yUp: Truth
string ExportObj(
    HumanDescription human,
    string path,
    bool yUp = false)

Parameters

nametypedefaultdescription
humanHumanDescription—
pathText—
yUpTruthFalse

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Expression

Function

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

Signature
Expression -> HumanDescription
    human: HumanDescription
    units: Text Array
    weights: Number Array
HumanDescription Expression(
    HumanDescription human,
    string[] units,
    double[] weights)

Parameters

nametypedefaultdescription
humanHumanDescription—
unitsText Array—
weightsNumber Array—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Eyebrows

Function

Eyebrows, or empty for none.

Signature
Eyebrows -> HumanDescription
    human: HumanDescription
    eyebrows: Text
HumanDescription Eyebrows(
    HumanDescription human,
    string eyebrows = "eyebrow001")

Parameters

nametypedefaultdescription
humanHumanDescription—
eyebrowsTexteyebrow001

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Eye Color

Function

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

Signature
EyeColor -> HumanDescription
    human: HumanDescription
    material: Text
HumanDescription EyeColor(
    HumanDescription human,
    string material = "brown")

Parameters

nametypedefaultdescription
humanHumanDescription—
materialTextbrown

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Eyelashes

Function

Eyelashes, or empty for none.

Signature
Eyelashes -> HumanDescription
    human: HumanDescription
    eyelashes: Text
HumanDescription Eyelashes(
    HumanDescription human,
    string eyelashes = "eyelashes01")

Parameters

nametypedefaultdescription
humanHumanDescription—
eyelashesTexteyelashes01

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Face

Function

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.

Signature
Face -> HumanDescription
    human: HumanDescription
    face: Text
    amount: Number
HumanDescription Face(
    HumanDescription human,
    string face = "smile",
    double amount = 1)

Parameters

nametypedefaultdescription
humanHumanDescription—
faceTextsmile
amountNumber1

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Hair

Function

A hairstyle, or empty for none.

Signature
Hair(human: HumanDescription, hair: Text) -> HumanDescription
HumanDescription Hair(HumanDescription human, string hair = "")

Parameters

nametypedefaultdescription
humanHumanDescription—
hairText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Height Centimetres

Function

How tall the human stands, unposed, in centimetres.

Signature
HeightCentimetres(human: HumanDescription) -> Number
double HeightCentimetres(HumanDescription human)

Parameters

nametypedefaultdescription
humanHumanDescription—

Returns

resultNumber
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Human

Function

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

Signature
Human(name: Text, bare: Truth) -> HumanDescription
HumanDescription Human(string name = "Human", bool bare = false)

Parameters

nametypedefaultdescription
nameTextHumanIts name.
bareTruthFalseLeave out the eyes, brows, lashes, teeth and tongue.

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Modifier

Function

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

Signature
Modifier -> HumanDescription
    human: HumanDescription
    modifier: Text
    value: Number
HumanDescription Modifier(
    HumanDescription human,
    string modifier,
    double value)

Parameters

nametypedefaultdescription
humanHumanDescription—
modifierText—
valueNumber—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Modifiers

Function

Several modifiers at once, name for value.

Signature
Modifiers -> HumanDescription
    human: HumanDescription
    modifiers: Text Array
    values: Number Array
HumanDescription Modifiers(
    HumanDescription human,
    string[] modifiers,
    double[] values)

Parameters

nametypedefaultdescription
humanHumanDescription—
modifiersText Array—
valuesNumber Array—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Open

Function

Opens a .hyu document or a MakeHuman .mhm.

Signature
Open(path: Text) -> HumanDescription
HumanDescription Open(string path)

Parameters

nametypedefaultdescription
pathText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Pose

Function

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

Signature
Pose -> HumanDescription
    human: HumanDescription
    pose: Text
    frame: Integer
    keepOnFloor: Truth
HumanDescription Pose(
    HumanDescription human,
    string pose = "",
    int frame = 0,
    bool keepOnFloor = true)

Parameters

nametypedefaultdescription
humanHumanDescription—
poseText—
frameInteger0
keepOnFloorTruthTrue

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Problems

Function

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

Signature
Problems(human: HumanDescription) -> Text Array
string[] Problems(HumanDescription human)

Parameters

nametypedefaultdescription
humanHumanDescription—

Returns

resultText Array
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Randomize

Function

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

Signature
Randomize -> HumanDescription
    human: HumanDescription
    seed: Integer
    gender: Number
    minimumAge: Number
    maximumAge: Number
    variety: Number
HumanDescription Randomize(
    HumanDescription human,
    int seed = 1,
    double gender = -1,
    double minimumAge = 18,
    double maximumAge = 70,
    double variety = 0.5)

Parameters

nametypedefaultdescription
humanHumanDescription—The human whose assets, rig and pose are kept.
seedInteger1The seed.
genderNumber-1A fixed gender from 0 to 1, or -1 for either.
minimumAgeNumber18The youngest, in years.
maximumAgeNumber70The oldest, in years.
varietyNumber0.5How far detail modifiers stray, 0 to 1.

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Rig

Function

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

Signature
Rig(human: HumanDescription, rig: Text) -> HumanDescription
HumanDescription Rig(
    HumanDescription human,
    string rig = "default")

Parameters

nametypedefaultdescription
humanHumanDescription—
rigTextdefault

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Save

Function

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

Signature
Save(human: HumanDescription, path: Text) -> Text
string Save(HumanDescription human, string path)

Parameters

nametypedefaultdescription
humanHumanDescription—
pathText—

Returns

resultText
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Skin

Function

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

Signature
Skin(human: HumanDescription, skin: Text) -> HumanDescription
HumanDescription Skin(HumanDescription human, string skin = "")

Parameters

nametypedefaultdescription
humanHumanDescription—
skinText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Smile

Function

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

Signature
Smile -> HumanDescription
    human: HumanDescription
    amount: Number
HumanDescription Smile(
    HumanDescription human,
    double amount = 0.7)

Parameters

nametypedefaultdescription
humanHumanDescription—
amountNumber0.7

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Symmetry

Function

Whether editing one side of the body edits the other.

Signature
Symmetry -> HumanDescription
    human: HumanDescription
    symmetric: Truth
HumanDescription Symmetry(
    HumanDescription human,
    bool symmetric = true)

Parameters

nametypedefaultdescription
humanHumanDescription—
symmetricTruthTrue

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Take Off

Function

A garment taken off.

Signature
TakeOff -> HumanDescription
    human: HumanDescription
    garment: Text
HumanDescription TakeOff(HumanDescription human, string garment)

Parameters

nametypedefaultdescription
humanHumanDescription—
garmentText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Topology

Function

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

Signature
Topology -> HumanDescription
    human: HumanDescription
    proxy: Text
HumanDescription Topology(
    HumanDescription human,
    string proxy = "")

Parameters

nametypedefaultdescription
humanHumanDescription—
proxyText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Turn Bone

Function

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, …).

Signature
TurnBone -> HumanDescription
    human: HumanDescription
    bone: Text
    x: Number
    y: Number
    z: Number
HumanDescription TurnBone(
    HumanDescription human,
    string bone,
    double x = 0,
    double y = 0,
    double z = 0)

Parameters

nametypedefaultdescription
humanHumanDescription—
boneText—
xNumber0
yNumber0
zNumber0

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics

Wear

Function

A garment put on; already worn, nothing changes.

Signature
Wear(human: HumanDescription, garment: Text) -> HumanDescription
HumanDescription Wear(HumanDescription human, string garment)

Parameters

nametypedefaultdescription
humanHumanDescription—
garmentText—

Returns

resultHumanDescription
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Characters
Package
Computer Graphics