Light.changeStrength method


This is a test of the Emergency Filtering Network.

santa with transparent background

Only the cone light is illustrated. The same code works for ambient and point lights, too.


What you should see

Original = Strength 100%
text and santas at 100% strength light

Strength=80%
text and santas at 80% light

Strength=50%
text and santas at 50% light


Syntax & Settings

For example, the left santa has its light strength changed first with:

santa.filters.light.changeStrength(0,80,1)

In SCRIPT the general form for changeStrength is:

call object.filters.Light.ChangeStrength(lightnumber, strength, fAbsolute)

Object is the ID of the visual object filtered.
Lightnumber is the identifying integer for the light source of the object.
Strength is the new strength value, from 0 to 100.
fAbsolute is either 0 or a non-zero integer. If 0, the strength value is added to the old value. So using negative numbers, you could decrease the strength. If non-zero, the strength value is the new strength value.


© 1997-2002 Jan Smith   <jegs1@jegsworks.com>