The LightRig object is a specialized Rig object composed of a Light and a Null as its interest. Although a LightRig is typically defined with a spot light, it can be defined with any light preset.
using namespace XSI;
Application app;
Model root = app.GetActiveSceneRoot();
LightRig myLightRig;
root.AddLightRig( L"Spot", L"MySpotRig", myLightRig );
X3DObject spotInterest(myLightRig.GetLight().GetInterest());
app.LogMessage( spotInterest.GetName() );
#include <xsi_lightrig.h>

Public Member Functions |
|
| LightRig () | |
| ~LightRig () | |
| LightRig (const CRef &in_ref) | |
| LightRig (const LightRig &in_obj) | |
| bool | IsA (siClassID in_ClassID) const |
| siClassID | GetClassID () const |
| LightRig & | operator= (const LightRig &in_obj) |
| LightRig & | operator= (const CRef &in_ref) |
| Light | GetLight () |
| LightRig | ( | ) |
Default constructor.
| ~LightRig | ( | ) |
Default destructor.
| bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] |
Returns true if a given class type is compatible with this API class.
| in_ClassID | class type. |
Reimplemented from Rig.
| siClassID GetClassID | ( | ) | const [virtual] |
Creates an object from another object. The newly created object is set to empty if the input object is not compatible.
| in_obj | constant class object. |