Related Scripting Object: Light | Supported Parameter List: light
The Light object represents a Softimage light, such as a point light or a spot light. More...
#include <xsi_light.h>
Inheritance diagram for Light:

Public Member Functions |
|
| Light () | |
| ~Light () | |
| Light (const CRef &in_ref) | |
| Light (const Light &in_obj) | |
| bool | IsA (siClassID in_ClassID) const |
| siClassID | GetClassID () const |
| Light & | operator= (const Light &in_obj) |
| Light & | operator= (const CRef &in_ref) |
| CRefArray | GetShaders () const |
| OGLLight | GetOGLLight () const |
| siShaderParameterType | GetShaderInputType (const CString &in_paramscriptname) const |
| CRefArray | FindShaders (const CString &in_filtername) const |
| CRefArray | GetAllShaders () const |
| CRefArray | GetAllImageClips () const |
You can create lights with X3DObject::AddLight. To get an existing light from a LightRig, you can use LightRig::GetLight.
using namespace XSI; Application app; Model root = app.GetActiveSceneRoot(); Light myPointLight; root.AddLight( L"Point", false,L"MyLight" ,myPointLight ); app.LogMessage( L"Light name: " + myPointLight.GetName() );
| ~Light | ( | ) |
Destroys a Light object.
Constructs a Light object from a CRef object.
| in_ref | A reference to a light. |
Constructs a new Light object from an existing Light object.
| bool IsA | ( | siClassID | in_ClassID | ) | const [virtual] |
Returns True if this object supports the functionality of a specified class. For example, a Light is a type of X3DObject, so a Light object supports X3DObject functionality.
| in_ClassID | Test if this object supports this class. |
Reimplemented from Directed.
| siClassID GetClassID | ( | ) | const [virtual] |
Returns the class ID for this object.
Reimplemented from Directed.
Assigns a Light object to an existing Light object.
| in_obj | A Light object to be copied into this object. |
Assigns a CRef to this Light object. The Light object is cleared if the CRef is not a reference to an object that supports the Light class.
| in_ref | A reference to an object that supports the Light class. |
Reimplemented from Directed.
| CRefArray GetShaders | ( | ) | const |
Returns an array of references to the Shader objects connected to this light.
| OGLLight GetOGLLight | ( | ) | const |
Returns the OGLLight for this light. The OGLLight object holds the light rendering information used by OpenGL.
| siShaderParameterType GetShaderInputType | ( | const CString & | in_paramscriptname | ) | const |
Returns the input type of a light parameter. Before you connect a shader to the parameter, use Parameter::GetCapabilities to make sure that the parameter supports the siTexturable capability.
| in_paramscriptname | The script name of a parameter. |
Returns all shaders that match a filter. For example, you can write a custom Filter that matches shaders with texturespace and colormap parameters, and then use this custom filter with this function.
| in_filtername | The name of a shader Filter (for example, siShaderFilter). |
| CRefArray GetAllShaders | ( | ) | const |
Returns a list of shaders nested under this Light.
| CRefArray GetAllImageClips | ( | ) | const |
Returns a list of the image clips nested under this Light.