Example
The following
ilk
Bids = [:]
put ilk( Bids )
-- #proplist
The following
ilk
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
the main Lingo Dictionary for a list of return values of non-3D objects which are not discussed in
this dictionary.
Type of object
render services
model resource
model
motion
shader
texture
group
camera
collision data
statement identifies the type of the object named Bids:
statement tests whether the variable Total is a list and displays the result in the
ilk(object) returns
#renderer
#modelresource, #plane, #box,
#sphere, #cylinder, #particle,
#mesh
#model
#motion
#shader
#texture
#group
#camera
#collisiondata
ilk(object, Type) if only Type =
#renderer
Same as ilk(object), except for
#modelresource which is the ilk of resources
generated by an imported W3D file
#model
#motion or #list
#shader or #list
#texture or #list
#group
#camera
#collisiondata
. See
ilk()
ilk (3D)
363
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers