Class

DuOCOLimb

DuOCOLimb(limbopt, sideopt, locationopt, typeopt)

A limb contained in an OCO Doc.
Constructor

# new DuOCOLimb(limbopt, sideopt, locationopt, typeopt)

Creates a new OCO Limb.
Parameters:
Name Type Attributes Default Description
limb DuOCO.Limb <optional>
DuOCO.Limb.CUSTOM A Predefined limb
side DuOCO.Side <optional>
DuOCO.Side.NONE The side of the limb
location DuOCO.Location <optional>
DuOCO.Location.NONE The location of the limb
type DuOCO.LimbType <optional>
DuOCO.LimbType.CUSTOM The type of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15669

Members

DuOCO.Limb

# static limb

The predefined limb

View Source DuAEF_DuSan_api.jsxinc, line 15671

Array.<DuOCOLimb>

# static limbs

The limbs/ Armatures

View Source DuAEF_DuSan_api.jsxinc, line 14387

DuOCO.Location

# static location

The location of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15692

Array.<DuOCOBone>

# static location

The bones of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15699

DuOCO.Side

# static side

The sided of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15685

DuOCO.LimbType

# static type

The type of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15678

Methods

# bounds() → {Array.<float>}

Gets the boundaries of the limb

View Source DuAEF_DuSan_api.jsxinc, line 15712

[left, top, right, bottom]
Array.<float>

# newArmature(name, numopt, lengthopt) → {DuOCOBone}

Creates a new chain of bones and adds it to the limb.
Parameters:
Name Type Attributes Default Description
name string The name of the bones (will increment if needed)
num int <optional>
2 The number of bones in the chain
length float <optional>
100.0 The length in centimeters

View Source DuAEF_DuSan_api.jsxinc, line 15724

The root bone.
DuOCOBone