User Guide
530 Chapter 12: Methods
This command is a shorter alternative to using the registerScript command for collisions, but
there is no difference in the overall result. This command can be considered to perform a small
subset of the
registerScript command functionality.
Parameters
handlerName
Required. Specifies the handler called when a model is involved in a collision.
scriptInstance Required. Specifies the script instance that contains the handler specified by
handlerName.
Example
This statement causes the #bounce handler in the cast member colScript to be called when the
model named Sphere collides with another model:
member("3d world").model("Sphere").collision.\
setCollisionCallback\
(#bounce, member("colScript"))
See also
collisionData, collision (modifier), resolve, resolveA, resolveB,
registerForEvent(), registerScript(), sendEvent
setFilterMask()
Usage
-- Lingo syntax
fileioObjRef.setFilterMask(stringMask)
// JavaScript syntax
fileioObjRef.setFilterMask(stringMask);
Description
Fileio method; Sets the filter mask for the Files of type field of a dialog box to specify the type of
files displayed when the dialog box opens.
Parameters
stringMask
Required. A string that specifies the filter mask.
See also
Fileio
setFinderInfo()
Usage
-- Lingo syntax
fileioObjRef.setFinderInfo(stringAttrs)
// JavaScript syntax
fileioObjRef.setFinderInfo(stringAttrs)
Description
Fileio method (Macintosh only); Sets the finder information for an open file.