v4.0
Creates a nurbs curve in one of 9 shapes. These shapes can be useful as animation controls. For example the biped rig's upvectors are pyramids, its hip and chest controls are squares, and the footroll controls are cubes.
oReturn = MakeRigIcon( Parent, [Type], [X], [Y], [Z], [Xlength], [Ylength], [Zlength], [Color], [Name], [XOffset], [YOffset], [ZOffset] ); |
Returns the X3DObject representing the created nurbs curves.
| Parameter | Type | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Parent | String | The parent object of the rig icon. If empty will be the Scene Root. | ||||||||||||||||||||
| Type | Integer |
The type of icon. Default Value: 2 (cube)
|
||||||||||||||||||||
| X | Double |
The X coordinate in global space. Default Value: 0.0 |
||||||||||||||||||||
| Y | Double |
The Y coordinate in global space. Default Value: 0.0 |
||||||||||||||||||||
| Z | Double |
The Z coordinate in global space. Default Value: 0.0 |
||||||||||||||||||||
| Xlength | Double |
The X length. Default Value: 1.0 |
||||||||||||||||||||
| Ylength | Double |
The Y length. Default Value: 1.0 |
||||||||||||||||||||
| Zlength | Double |
The Z length. Default Value: 1.0 |
||||||||||||||||||||
| Color | Integer |
the type of shadow rig to constrain to the spine. Default Value: 65 (dark green) |
||||||||||||||||||||
| Name | String |
The name of the icon object. If no name is used the default curve list name is used. Default Value: "" |
||||||||||||||||||||
| XOffset | Double |
The X offset in global space. Default Value: 0.0 |
||||||||||||||||||||
| YOffset | Double |
The Y offset in global space. Default Value: 0.0 |
||||||||||||||||||||
| ZOffset | Double |
The Z offset in global space. Default Value: 0.0 |
//
// Generates all the rigging icons beside each other
//
for (var icontype = 0; icontype < 9; icontype++)
{
makeRigIcon(
ActiveSceneRoot,
icontype,
icontype, 0, 0, //XYZ position
1, 1, 1, //XYZ scale
icontype*100, //colour
icontype, //name
0,0,0 //XYZ offset
);
} |