Class: DuOCOBone

DuOCOBone

A bone contained in an OCO Limb.

new DuOCOBone(name)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15551
Creates a new OCO Bone.
Name Type Description
name string The name

Members

staticDuOCOBone.attachedBoolean

true if this bone is attached to its parent.

staticDuOCOBone.childrenArray.<DuOCOBone>

The child bones.

staticDuOCOBone.limbsArray.<DuOCOLimb>

The child limbs.

staticDuOCOBone.namestring

The name of the bone

staticDuOCOBone.typeDuOCO.Bone

The type of bone.

staticDuOCOBone.xfloat

The x coordinate of the bone

staticDuOCOBone.yfloat

The y coordinate of the bone

Methods

toComp(doc, limb, comp, parentLayer, limbId, boneIndex){Array.<Layer>}

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 32482
Creates the limbs and armatures in the comp
Name Type Default Description
doc DuOCODoc The doc containing the bone.
limb DuOCOLimb The limb containing the bone.
comp CompItem DuAEProject.getActiveComp() optional The composition to use.
parentLayer Layer null optional The parent layer of the bone.
limbId int optional A Unique identifier for this armature. If omitted, a new one will be assigned.
boneIndex int 0 optional The index of the bone in the chain.
Returns:
Type Description
Array.<Layer> The new layers

translate(x, y, translateChildren)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15610
Translates the bone by [x, y] pixels
Name Type Default Description
x int 0 optional The horizontal offset
y int 0 optional The vertical offset
translateChildren bool true optional If false, the children stay at their current location

translateTo(x, y, translateChildren)

D:/RxLab/src/RxOT/DuAEF/Duik/Duik_API/DuAEF_Duik_api.jsxinc, line 15631
Translates the bone to the new coordinates
Name Type Default Description
x int optional The new X value. If omitted, moves the layer vertically
y int optional The new Y value. If omitted, moves the layer horizontally
translateChildren bool true optional If false, the children stay at their current location