v1.5
A collection of Shader objects.
# # 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 |