Constructor
# new DuOCOBone(name)
Creates a new OCO Bone.
Parameters:
Name | Type | Description |
---|---|---|
name |
string
|
The name |
Members
Methods
# 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 |
# 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 |