AddLightRig (X3DObject)

Description

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

Scripting Syntax

    X3DObject.AddLightRig( Preset, [Name] )

C# Syntax

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

Parameters

Parameter | Type | Description
Preset | Light Primitive Preset | Preset for type of light Possible Values: • 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

Return Value

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" )

Autodesk Softimage v7.5