The objects in the scene can communicate thought events. Every object
has his own events.
The events can be in or out. The events can be linked through routes.
A route can link a event out with an event in.
SFBool | A boolean value, can be true or false. |
SFInt32 | 32 bit, two's complement integer |
MFInt32 | an array of integer |
SFFloat | a float number |
MFFloat | an array of floats |
SFString | a string |
MFString | an array of strings |
click | SFInt32 | during editing, if you click with the mouse on it | Event out |
frame | SFFloat | when a new frame is selected. The number of the frame is send. | Event out |
In a .rt file all the routes are listed in a route section.
{ route
For example:
{ route
The scene objects can execute some procedures.
GetAttribute | SFString -> SFString | return the value of an attribute |
SetAttribute | SFString, SFString ->SFBool | Change the value of an attribute; return true is the operation is successful. |
GetNControl | SFInt32 -> SFInt32 | Return the number of control points |
GetControl | SFInt32 ->MFFloat | Return the value of a control point |
SetControl | SFInt32, MFFloat->SFBool | Set the value of a control point |
IsCurve | SFFloat -> SFBool | Return true if the object is a curve
A curve is in the form s(t) where t is a variable CurveFrom < s(t) < CurveTo
|
CurveFrom | SFFloat -> SFFloat | Return the first valid value for a curve |
CurveTo | SFFloat -> SFFloat | Return the last valid value for a curve |
CurveEval | SFFloat -> MFFloat | Evaluate a single point in the curve |
bh_getfield | (Object,Event,ReturnValue) | Change the value of a field
|
||||||||
bh_getfield | (Object,Event,Param,ReturnValue) | Execute ue of a field
|
||||||||
bh_setfield | (Object,Event,Param) | Change the value of a field
|
||||||||
bh_eventout | (Event,Data) | Generate an event out
|
The field data in the Prolog Script format
SFBool | sfbool(true) or sfbool(false) |
SFInt32 | sfint32(10) |
MFInt32 | mfint32(1,2,3,4) |
SFFloat | sffloat(4.6) |
MFFloat | mffloat(1.4 , 4.7, 67) |
SFString | sfstring('A string message') |
MFString | mfstring('String one','String two','String tree') |
{ object