X3DObject.AddLightRig
 
 
 

X3DObject.AddLightRig

Description

Creates a new LightRig object given a light preset name/object and a rig name. The LightRig is parented under this X3DObject.

C# Syntax

LightRig X3DObject.AddLightRig( Object in_Preset, String in_name );

Scripting Syntax

oReturn = X3DObject.AddLightRig( Preset, [Name] );

Return Value

LightRig

Parameters

Parameter Type Description
Preset Light Primitive Preset Preset for type of light

Possible Values:

Description:

Infinite Infinite light
Light_Box Light Box light
LightInfinite Infinite light
LightPoint Point light
LightSpot Spotlight
LightSun Sunlight
Neon Neon light
Point Point light
Spot Spotlight
Name String name of new LightRig

Examples

1. JScript Example

var oLightrig = Application.ActiveSceneRoot.AddCameraRig( "Neon", "MyLightRig" ) ;

2. VBScript Example

set oRoot = Application.ActiveProject.ActiveScene.Root
set oSpotrig = oRoot.AddLightRig( "Spot", "MySpotLightRig" )