User Guide

Chapter 378
attenuation
Syntax
member(whichCastMember).light(whichLight).attenuation
Description
3D light property; indicates the constant, linear, and quadratic attenuation factors for spotlights
and point lights.
The default value for this property is vector(1.0, 0.0, 0.0).
Example
This statement sets the attenuation property of the light named HouseLight to the vector (.5, 0,
0), darkening it slightly.
member("3d world").light("HouseLight").attenuation = \
vector(.5, 0, 0)
See also
color (light)
attributeName
Syntax
XMLnode.attributeName[ attributeNumber ]
Description
XML property; returns the name of the specified child node of a parsed XML document.
Example
Beginning with the following XML:
<?xml version="1.0"?>
<e1>
<tagName attr1="val1" attr2="val2"/>
<e2>element 2</e2>
<e3>element 3</e3>
here is some text
</e1>
This Lingo returns the name of the first attribute of the tag called tagName:
put gParserObject.child[1].child[1].attributeName[1]
-- "attr1"
See also
attributeValue