User Guide
792 Chapter 14: Properties
See also
DVD
getBoneID
Usage
memberReference.modelResource.getBoneID("boneName")
Description
3D model resource property; returns the index number of the bone named boneName in the
model resource. This property returns 0 if no bone by that name can be found.
Example
This statement returns an ID number for the bone ShinL:
put member("ParkScene").modelResource("LittleKid").getBoneId("ShinL")
-- 40
See also
bone
globals
Usage
the globals
Description
System property; this property contains a special property list of all current global variables with
a value other than
VOID. Each global variable is a property in the list, with the associated paired
value.
You can use the following list operations on
globals:
• count()—Returns the number of entries in the list.
• getPropAt(n)—Returns the name of the nth entry.
• getProp(x)—Returns the value of an entry with the specified name.
• getAProp(x)—Returns the value of an entry with the specified name.
Note: The globals property automatically contains the property #version, which is the version of
Director running. This means there will always be at least one entry in the list, even if no global
variables have been declared yet.
This property differs from showGlobals in that the globals can be used in contexts other than
the Message window. To display the globals in the Message window, use showGlobals.
See also
showGlobals(), clearGlobals()