EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 363

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
ilk (3D) 363
Example
The following ilk statement identifies the type of the object named Bids:
Bids = [:]
put ilk( Bids )
-- #proplist
The following ilk statement tests whether the variable Total is a list and displays the result in the
Message window:
Total = 2+2
put ilk( Total, #list )
-- 0
In this case, since the variable Total is not a list, the Message window displays 0, which is the
numeric equivalent of FALSE.
The following example tests a variable named myVariable and verifies that it is a date object
before displaying it in the Message window:
myVariable = the systemDate
if ilk(myVariable, #date) then put myVariable
-- date( 1999, 2, 19 )
ilk (3D)
Usage
ilk(object)
ilk(object,type)
object.ilk
object.ilk(type)
Description
Lingo function; indicates the type of an object.
The following table shows the return value for each type of 3D object recognized by
ilk(). See
the main Lingo Dictionary for a list of return values of non-3D objects which are not discussed in
this dictionary.
Type of object ilk(object) returns ilk(object, Type) if only Type =
render services #renderer #renderer
model resource #modelresource, #plane, #box,
#sphere, #cylinder, #particle,
#mesh
Same as ilk(object), except for
#modelresource which is the ilk of resources
generated by an imported W3D file
model #model #model
motion #motion #motion or #list
shader #shader #shader or #list
texture #texture #texture or #list
group #group #group
camera #camera #camera
collision data #collisiondata #collisiondata