Set Light VI

Owning Palette: Helpers VIs

Requires: Full Development System

Creates and positions a light source in 3D space relative to a 3D object.

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Set Light

Light State specifies whether to enable the light state.

0Inherit Value (default)—The light inherits the state of the parent object.
1Off—Disables the light.
2On—Enables the light.
Scene Object In specifies a reference to the scene you want to manipulate.
Light Refnum In specifies a reference to the light.
Position specifies the x, y, and z coordinates that define the position of the light relative to its owning object.
X specifies the X coordinate of the light source. The default value is 0.
Y specifies the Y coordinate of the light source. The default value is 0.
Z specifies the Z coordinate of the light source. The default value is 0.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Scene Object Out returns a reference to the scene object.
error out contains error information. This output provides standard error out functionality.

Set Light with Reference

Light State specifies whether to enable the light state.

0Inherit Value (default)—The light inherits the state of the parent object.
1Off—Disables the light.
2On—Enables the light.
Scene Object In specifies a reference to the scene you want to manipulate.
Light Refnum In specifies a reference to the light.
Position specifies the x, y, and z coordinates that define the position of the light relative to its owning object.
X specifies the X coordinate of the light source. The default value is 0.
Y specifies the Y coordinate of the light source. The default value is 0.
Z specifies the Z coordinate of the light source. The default value is 0.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
Scene Object Out returns a reference to the scene object.
Light Refnum In returns a reference to the light.
error out contains error information. This output provides standard error out functionality.