[Contents] [Index] [Books]

CoCreate OneSpace Designer - Commands Reference Manual


SET_LIGHT_ATTENUATION terminate action

SET_LIGHT_ATTENUATION specifies the attenuation distance for a cone or positional light.

Syntax


---->(SET_LIGHT_ATTENUATION)--|viewport|--|light|--|distance|---->

Options

This action has no options.

When to use

Use this action to set the light attenuation distance for positional or cone lights in a viewport.

Example

The following parameter sequence sets the light attenuation of the specified light.

SET_LIGHT_ATTENUATION [specify viewport] [specify light] [enter attenuation distance]

All viewport names must be enclosed by double quotes (" ").

You can either enter the distance directly, or specify a point on the model, (the attenuation distance is the distance from the point specified, to the light source). You can also turn attenuation off, to create unattenuated light.

Note that any objects closer (to the light source), than the specified distance will be fully illuminated, and that objects further away will receive less light.

This action has no effect on the ambient light setting.

See also

SET_CURRENT_LIGHT terminate action SET_LIGHT_BRIGHTNESS terminate action SET_LIGHT_COLOR terminate action SET_LIGHT_CONE terminate action SET_CURRENT_LIGHT terminate action SET_LIGHT_DIRECTION terminate action SET_LIGHT_FOLLOW terminate action SET_LIGHT_POSITION terminate action SET_LIGHT_SPOT terminate action SET_LIGHT_SWITCH terminate action SET_LIGHT_TYPE terminate action GET_LIGHT_ATTENUATION interrupt action GET_LIGHT_BRIGHTNESS interrupt action GET_LIGHT_COLOR interrupt action GET_LIGHT_CONE interrupt action GET_CURRENT_LIGHT interrupt action GET_LIGHT_DIRECTION interrupt action GET_LIGHT_FOLLOW interrupt action GET_LIGHT_POSITION interrupt action GET_LIGHT_SPOT interrupt action GET_LIGHT_SWITCH interrupt action GET_LIGHT_TYPE interrupt action SELECT_VP_SA subaction
[Contents] [Index] [Books]