|
Model elements and each
of the components of the Kribi 3D Player have a
number of properties, all the properties are
read and write. |
|
|
|
 |
To set the value
of a property, use the notation
ClassName –
PropertyName –
value
|
|
|
|
Color RGB
255,0,0
sets the current color to red |
|
|
|
Setting a
property returns its previous value.
|
|
|
 |
To Get the value
of a property, leave out the value, use
the notation
ClassName –
PropertyName that returns the
value
|
|
|
|
Color RGB To get the value of
the RGB property of the current color,
returns
255,0,0.
|
|
|
 |
The extended
notation is available for all
properties. |
|
|
|
Color RGB
255,0,0
|
Sets the RGB
value of the current color. |
Color[3]
RGB
255,0,0 |
Sets the RGB
value of the 3rd color |
Color['red']
RGB
255,0,0 |
Sets the RGB
value of the color named red. |
|
|
|
 |
To get or set
the property of a model element, set
the element as current or indicate it
with an extended notation. If you try
to set or get a property with no
current element it will return an empty
string. |
|