arcticPigs release V1.0 helpefiles |
![]() |
The model object controls a couple of base properties of the model. A model can be referred to by many action-sequences across several scripts. However you will only ever see one instance of the model on the screen. Adding a model to a second script does not pop a second model on the screen. Rather it creates a second script referring to one and the same model. The properties related to a model object reflect this organisation. You can set the location amd orientation through the base object of the model. This allows you to shift the model to an arbitrary start postiion, setting the default orientation to which all actions are 'added'. From the model object you can access the groups making up the model allowing you great control over how the model is rendered.
The model object has an (almost) identical set of event handlers as the group class. One does not override the other, but rather both classes of events get fired.
Name | Type | Description |
---|---|---|
onclick | ![]() | Sets a function to be executed when any part of this model gets clicked |
ondblclick | ![]() | Sets a function to be executed when any part of this model gets double clicked |
ondrag | ![]() | Sets a function to be executed when the model is being dragged |
onlbuttondown | ![]() | Sets a function to be executed when the left button is pressed while the cursor is above any part of this model. |
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 model. |
onmouseover | ![]() | Sets a function to be executed when the cursor first hits any part of this model. |
active(BOOL) | ![]() | Sets the renderstate of this model |
base | ![]() | Returns an instance of the base object representing the position of this model instance. |
bones | ![]() | Returns a bones collection object containing all the visible bones in this model |
groups | ![]() | Returns a groups collection object containing all the group objects belonging to this model |
handling | ![]() | property handlingModes |
modelFile | ![]() | Reference to the model file data |
name(String) | ![]() | The name of this model instance. |
poses | ![]() | property poses |
subdivideBias(Float) | ![]() | property subdivideBias |
Last Updated: 06/20/02 |