3D Lingo Dictionary > O-S > spotAngle

 

spotAngle

Syntax

member(whichCastmember).light(whichLight).spotAngle

Description

3D property; allows you to get or set the angle of the light projection cone. Light that is falls outside of the angle specified for this property, contributes no intensity. This property takes float value between 0.0 and 180.00, and has a default value of 90.0. The float value you specify corresponds to half the angle; for instance if you wish to specify a 90° angle you would pass a value of 45.0.

Example

This statement sets the spotAngle property of the light unidirectional to 8. The angle of the light projection cone will be 16°.

member("3d world").light("unidirectional").spotAngle = 8