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.

Properties, Events and Methods

Name Type Description
onclick EventSets a function to be executed when any part of this model gets clicked
ondblclick EventSets a function to be executed when any part of this model gets double clicked
ondrag EventSets a function to be executed when the model is being dragged
onlbuttondown EventSets a function to be executed when the left button is pressed while the cursor is above any part of this model.
onlbuttonup EventSets a function to be executed when the left button is released.
onmouseout EventSets a function to be executed when the cursor leaves this model.
onmouseover EventSets a function to be executed when the cursor first hits any part of this model.
active(BOOL) PropertySets the renderstate of this model
base PropertyReturns an instance of the base object representing the position of this model instance.
bones PropertyReturns a bones collection object containing all the visible bones in this model
groups PropertyReturns a groups collection object containing all the group objects belonging to this model
handling Propertyproperty handlingModes
modelFile PropertyReference to the model file data
name(String) PropertyThe name of this model instance.
poses Propertyproperty poses
subdivideBias(Float) Propertyproperty subdivideBias

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.