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
n
th 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()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...