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_DuGR_api.jsxinc, line 15704

Members

DuOCO.Limb

# static limb

The predefined limb

View Source DuAEF_DuGR_api.jsxinc, line 15706

Array.<DuOCOLimb>

# static limbs

The limbs/ Armatures

View Source DuAEF_DuGR_api.jsxinc, line 14435

DuOCO.Location

# static location

The location of the limb

View Source DuAEF_DuGR_api.jsxinc, line 15727

Array.<DuOCOBone>

# static location

The bones of the limb

View Source DuAEF_DuGR_api.jsxinc, line 15734

DuOCO.Side

# static side

The sided of the limb

View Source DuAEF_DuGR_api.jsxinc, line 15720

DuOCO.LimbType

# static type

The type of the limb

View Source DuAEF_DuGR_api.jsxinc, line 15713

Methods

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

Gets the boundaries of the limb

View Source DuAEF_DuGR_api.jsxinc, line 15747

[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_DuGR_api.jsxinc, line 15759

The root bone.
DuOCOBone