## DuOCOBone(name)

A bone contained in an OCO Limb.
Constructor

#### # new DuOCOBone(name)

Creates a new OCO Bone.

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | `string` | The name

View Source DuAEF_Duik_api.jsxinc, line 15781

# Members

Type: `Boolean`

#### # static attached

true if this bone is attached to its parent.

View Source DuAEF_Duik_api.jsxinc, line 15804

Type: `Array.<DuOCOBone>`

#### # static children

The child bones.

View Source DuAEF_Duik_api.jsxinc, line 15811

Type: `Array.<DuOCOLimb>`

#### # static limbs

The child limbs.

View Source DuAEF_Duik_api.jsxinc, line 15818

Type: `string`

#### # static name

The name of the bone

View Source DuAEF_Duik_api.jsxinc, line 15783

Type: `DuOCO.Bone`

#### # static type

The type of bone.

View Source DuAEF_Duik_api.jsxinc, line 15825

Type: `float`

#### # static x

The x coordinate of the bone

View Source DuAEF_Duik_api.jsxinc, line 15790

Type: `float`

#### # static y

The y coordinate of the bone

View Source DuAEF_Duik_api.jsxinc, line 15797

# Methods

#### # toComp(doc, limb, compopt, parentLayeropt, limbIdopt, boneIndexopt) → {Array.<Layer>}

Creates the limbs and armatures in the comp

##### Parameters:

Name | Type | Attributes | Default | Description
--- | --- | --- | --- | ---
`doc` | `DuOCODoc` |  |  | The doc containing the bone.
`limb` | `DuOCOLimb` |  |  | The limb containing the bone.
`comp` | `CompItem` | <optional> | DuAEProject.getActiveComp() | The composition to use.
`parentLayer` | `Layer` | <optional> | null | 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` | <optional> | 0 | The index of the bone in the chain.

View Source DuAEF_Duik_api.jsxinc, line 34115

Returns:
The new layers
Type: `Array.<Layer>`

#### # translate(xopt, yopt, translateChildrenopt)

Translates the bone by [x, y] pixels

##### Parameters:

Name | Type | Attributes | Default | Description
--- | --- | --- | --- | ---
`x` | `int` | <optional> | 0 | The horizontal offset
`y` | `int` | <optional> | 0 | The vertical offset
`translateChildren` | `bool` | <optional> | true | If false, the children stay at their current location

View Source DuAEF_Duik_api.jsxinc, line 15840

#### # translateTo(xopt, yopt, translateChildrenopt)

Translates the bone to the new coordinates

##### Parameters:

Name | Type | Attributes | 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` | <optional> | true | If false, the children stay at their current location

View Source DuAEF_Duik_api.jsxinc, line 15861