ShaderCollection

Introduced

v1.5

Description

A collection of Shader objects.

Methods

Filter Find GetAsText  
       

Properties

Count operator Item operator    
       

Examples

Python Example

# 
# This example demonstrates how to apply a lens shader to a 
# camera and then iterate over the new shader's parameters
#
app = Application
app.NewScene("" , False)
app.CreateShaderFromPreset("$XSI_DSPRESETS\Shaders\Lens\Cartoon.Preset", "Camera.camera")
app.SIConnectShaderToCnxPoint("Camera.camera.Cartoon", "Camera.camera.lensshader", False)
oCam = app.ActiveSceneRoot.FindChild("Camera")
for oShader in oCam.Shaders :
        app.LogMessage( "name of shader: " + oShader.Name)
        app.LogMessage("shader parameters: ")
        for oParam in oShader.Parameters :
                app.LogMessage("\t"+oParam.Name)
# Expected results:
# INFO : name of shader: Cartoon
# INFO : shader parameters: 
# INFO :        Name
# INFO :        gmatte_on
# INFO :        gmatte_alpha
# INFO :        gmatte_all
# INFO :        gmatte
# INFO :        width
# INFO :        taper
# INFO :        w_amp
# INFO :        w_frq
# INFO :        h_amp
# INFO :        s_amp
# INFO :        v_amp
# INFO :        c_frq
# INFO :        animation
# INFO :        ink_only
# INFO :        transp
# INFO :        zfade_start
# INFO :        zfade_end
# INFO :        zfade_color_amt
# INFO :        zfade_width_amt

See Also

Camera.Shaders Light.Shaders Shader.Shaders Material.Shaders