new DuOCODoc(name)
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12428
Creates a new OCO Document.
Name | Type | Description |
---|---|---|
name |
string | The name of the character or the meta rig |
Members
-
staticDuOCODoc.centerOfMassArray.<float>
-
The coordinates of the center of mass of the character. [X, Y].
-
staticDuOCODoc.heightfloat
-
The height of the character. Should always be 1!
-
staticDuOCODoc.namestring
-
The name of this OCO Doc
-
staticDuOCODoc.typestring
-
The type of this OCO Doc
-
staticDuOCODoc.widthfloat
-
The width of the character.
Methods
-
bounds(){Array.<float>}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12481 -
Gets the boundaries of the doc
Returns:
Type Description Array.<float> [left, top, right, bottom] -
fromPixels(point){Array.<float>}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13692 -
Converts a pixel coordinate in pixels to centimeters doc coordinates
Name Type Description point
Array.<int> The coordinate to convert Returns:
Type Description Array.<float> The coordinates in centimeters relative to the doc -
newArm(type, side, shoulder, arm, forearm, hand, claws, position, location, view){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12544 -
Creates a new arm.
Name Type Default Description type
DuOCO.LimbType DuOCO.LimbType.HOMINOID optional The type of limb side
DuOCO.Side DuOCO.Side.LEFT optional The side shoulder
Boolean false optional Whether to create a shoulder arm
Boolean true optional Whether to create an arm / humerus forearm
Boolean true optional Whether to create a forearm hand
Boolean true optional Whether to create a hand claws
Boolean false optional Whether to add claws position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.location
DuOCO.Location DuOCO.Location.FRONT optional The location of the limb view
DuOCO.View optional The view Returns:
Type Description DuOCOLimb The arm -
newFin(fishbones, position, view){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13580 -
Creates a new fin.
Name Type Default Description fishbones
int 5 optional Number of feathers position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.view
DuOCO.View DuOCO.View.RIGHT optional The view Returns:
Type Description DuOCOLimb The fin -
newFishSpine(head, spine, position){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13498 -
Creates a new fish spine.
Name Type Default Description head
Boolean true optional Whether to create a head spine
int 3 optional Number of spine bones position
Array.<float> optional The position of the first bone of the spine.
If omitted, computed automatically according to the current character in the doc.Returns:
Type Description DuOCOLimb The fish spine -
newHairStrand(numBones){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13201 -
Creates a new hair strand.
Name Type Default Description numBones
int 3 optional Number of hair bones Returns:
Type Description DuOCOLimb The hair -
newLeg(type, side, thigh, calf, foot, claws, position, location, view){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12878 -
Creates a new leg.
Name Type Default Description type
DuOCO.LimbType DuOCO.LimbType.HOMINOID optional The type of limb side
DuOCO.Side DuOCO.Side.LEFT optional The side thigh
Boolean true optional Whether to create a thigh calf
Boolean true optional Whether to create a calf foot
Boolean true optional Whether to create a foot claws
Boolean false optional Whether to add claws position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.location
DuOCO.Location DuOCO.Location.BACK optional The location of the limb view
DuOCO.View optional The view Returns:
Type Description DuOCOLimb The leg -
newLimb(limb, side, location, type){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12522 -
Creates a new limb and adds it to the doc
Name Type Default Description limb
DuOCO.Limb DuOCO.Limb.CUSTOM optional A Predefined limb side
DuOCO.Side DuOCO.Side.NONE optional The side of the limb location
DuOCO.Location DuOCO.Location.NONE optional The location of the limb type
DuOCO.LimbType DuOCO.LimbType.CUSTOM optional The type of the limb Returns:
Type Description DuOCOLimb The new limb -
newSnakeSpine(head, spine, position){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13416 -
Creates a new snake spine.
Name Type Default Description head
Boolean true optional Whether to create a head spine
int 5 optional Number of spine bones position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.Returns:
Type Description DuOCOLimb The snake spine -
newSpine(head, neck, spine, hips, position, view){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13069 -
Creates a new spine.
Name Type Default Description head
Boolean true optional Whether to create a head neck
int 1 optional Number of neck bones spine
int 2 optional Number of spine bones hips
Boolean true optional Whether to create hips position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.view
DuOCO.View optional The view Returns:
Type Description DuOCOLimb The spine -
newTail(numBones){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13163 -
Creates a new tail.
Name Type Default Description numBones
int 3 optional Number of tail bones Returns:
Type Description DuOCOLimb The spine -
newWing(side, arm, forearm, hand, feathers, position, view){DuOCOLimb}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13253 -
Creates a new wing.
Name Type Default Description side
DuOCO.Side DuOCO.Side.LEFT optional The side arm
Boolean true optional Whether to create an arm / humerus forearm
Boolean true optional Whether to create a forearm hand
Boolean true optional Whether to create a hand feathers
int 5 optional Number of feathers position
Array.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.view
DuOCO.View DuOCO.View.TOP optional The view Returns:
Type Description DuOCOLimb The wing -
toPixels(point){Array.<int>}
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 13675 -
Converts a doc coordinate in centimeters to pixel coordinates
Name Type Description point
Array.<float> The coordinate to convert Returns:
Type Description Array.<int> The coordinates in pixels relative to the comp -
updateSize()
D:/DEV_SRC/RxOT/DuPSF/tools/output/DuPSF.jsxinc, line 12504 -
Updates the width and height of the character, according to the content.
This method should be called each time a limb/bone is added/removed/edited and the bounds may change.