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 pointArray.<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 typeDuOCO.LimbType DuOCO.LimbType.HOMINOID optional The type of limb sideDuOCO.Side DuOCO.Side.LEFT optional The side shoulderBoolean false optional Whether to create a shoulder armBoolean true optional Whether to create an arm / humerus forearmBoolean true optional Whether to create a forearm handBoolean true optional Whether to create a hand clawsBoolean false optional Whether to add claws positionArray.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.locationDuOCO.Location DuOCO.Location.FRONT optional The location of the limb viewDuOCO.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 fishbonesint 5 optional Number of feathers positionArray.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.viewDuOCO.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 headBoolean true optional Whether to create a head spineint 3 optional Number of spine bones positionArray.<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 numBonesint 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 typeDuOCO.LimbType DuOCO.LimbType.HOMINOID optional The type of limb sideDuOCO.Side DuOCO.Side.LEFT optional The side thighBoolean true optional Whether to create a thigh calfBoolean true optional Whether to create a calf footBoolean true optional Whether to create a foot clawsBoolean false optional Whether to add claws positionArray.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.locationDuOCO.Location DuOCO.Location.BACK optional The location of the limb viewDuOCO.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 limbDuOCO.Limb DuOCO.Limb.CUSTOM optional A Predefined limb sideDuOCO.Side DuOCO.Side.NONE optional The side of the limb locationDuOCO.Location DuOCO.Location.NONE optional The location of the limb typeDuOCO.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 headBoolean true optional Whether to create a head spineint 5 optional Number of spine bones positionArray.<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 headBoolean true optional Whether to create a head neckint 1 optional Number of neck bones spineint 2 optional Number of spine bones hipsBoolean true optional Whether to create hips positionArray.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.viewDuOCO.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 numBonesint 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 sideDuOCO.Side DuOCO.Side.LEFT optional The side armBoolean true optional Whether to create an arm / humerus forearmBoolean true optional Whether to create a forearm handBoolean true optional Whether to create a hand feathersint 5 optional Number of feathers positionArray.<float> optional The position of the first bone of the arm.
If omitted, computed automatically according to the current character in the doc.viewDuOCO.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 pointArray.<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.