arcticPigs release V1.0 helpefiles |
![]() |
The group object
The group object defines a collection of patches within your model. For this collection the group object is the placeholder for all information regarding this part of your model surface. The group defines the material characteristics of the surface and also an area that can be used to signal mouse events to your script.
Note that several events are listed below. Strictly speaking these are not events but properties. You can assign a JScript function to these properties that gets fired when this event occurs.
Name | Type | Description |
---|---|---|
onclick | ![]() | Sets a function to be executed when any part of this group gets clicked |
ondblclick | ![]() | Sets a function to be executed when any part of this group gets double clicked |
onlbuttondown | ![]() | Sets a function to be executed when the left button is pressed while the cursor is above any part of this group. |
onlbuttonup | ![]() | Sets a function to be executed when the left button is released. |
onmouseout | ![]() | Sets a function to be executed when the cursor leaves this group. |
onmouseover | ![]() | Sets a function to be executed when the cursor first hits any part of this model. |
ambient(Float) | ![]() | The ambient light intensity of this group. |
diffuseColor | ![]() | Returns a vector object representing the diffuse colour of this group. |
hitTesting(BOOL) | ![]() | Sets or retrieves the hit testing mode for this group. |
name(String) | ![]() | Retrieves the name of the group. |
renderGroup(BOOL) | ![]() | Boolean controlling if any of the patches belonging to this group will be rendered or not. |
specularColor | ![]() | Returns a vector object representing the specular colour of this group. |
specularInt(Float) | ![]() | The specular intensity of this group material. |
specularSize(Float) | ![]() | The specular size of this group material. |
transparency(Float) | ![]() | Sets the transparency of this group material. |
Last Updated: 06/18/02 |