XSI’s object model and C++ API include methods to read the MetaShader section of SPDL file. Each renderer can be queried separately about their parameters.
• Shader.HasRenderer: Checks for the presence of a Renderer section for this particular renderer.
• Shader.RendererOptionValue: Gets the value of a specified in the Options parameter for the given renderer.
• Shader.SymbolName: Returns the contents of the Name parameter, which indicates the function to call (or its symbol name) to render this shader.
• Shader.CodePath: Returns the contents of the FileName property from the given Renderer section.
• Shader.CodeText: Returns all the text as-is between the BeginText and EndText tags.
For more information about these methods, see the Scripting Reference and C++ API Reference.
SOFTIMAGE|XSI v6.01