User Guide
344 Chapter 12: Methods
Example
This statement identifies the value associated with the property #c in the property list Answers,
which consists of [#a:10, #b:12, #c:15, #d:22]:
getProp(Answers, #c)
The result is 15, because 15 is the value associated with #c.
See also
getOne()
getPropAt()
Usage
list.getPropAt(index)
getPropAt(list, index)
Description
Property list function; for property lists only, identifies the property name associated with a
specified position in a property list. If the specified item isn’t in the list, or if you use
getPropAt() with a linear list, a script error occurs.
Parameters
index
Required. Specifies the index position of the property in the property list.
Example
This statement displays the second property in the given list:
put Answers.getPropAt(2)
-- #b
The result is 20, which is the value associated with #b.
getRendererServices()
Usage
getRendererServices()
getRendererServices().whichGetRendererServicesProperty
Description
3D command; returns the rendererServices object. This object contains hardware information
and properties that affect all 3D sprites and cast members.
The
rendererServices object has the following properties:
• renderer indicates the software rasterizer used to render all 3D sprites.
• rendererDeviceList returns a list of software rasterizers available on the user’s system.
Possible values include
#openGL, #directX5_2, #directX7_0, and #software. The value of
renderer must be one of these. This property can be tested but not set.
• textureRenderFormat indicates the pixel format used by the renderer. Possible values include
#rgba8888, #rgba8880, #rgba5650, #rgba5550, #rgba5551, and #rgba4444. The four digits
in each symbol indicate how many bits are used for each red, green, blue, and alpha
component.