Shaders (Camera)

Description

Returns a ShaderCollection containing of all Shader objects connected to this Camera.

C# Syntax

    // get accessor
    ShaderCollection rtn = Camera.Shaders;

Examples

VBScript Example

    ' Shaders of a Camera example
    dim oCam, oShader, oParam
    set oCam = GetValue("Scene_Root").AddCameraRig( "Camera" ).camera
    SIApplyShaderToCnxPoint "S:\Data\DSPresets\Shaders\Lens\Panoramic.Preset", oCam & ".camera.lensshader", , False

    for each oShader in oCam.Shaders
       LogMessage "name of shader: " & oShader.Name
       LogMessage "shader parameters: "
       for each oParam in oShader.Parameters
           LogMessage oParam.Name
       next
    next

Autodesk Softimage v7.5