Querying the SPDL Parameters

Softimage’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::GetRendererOption: Gets the value of a specified in the Options parameter for the given renderer.

• Shader::GetSymbolName: Returns the contents of the Name parameter, which indicates the function to call (or its symbol name) to render this shader.

• Shader::GetCodePath: Returns the contents of the FileName property from the given Renderer section.

• Shader::GetCodeText: Returns all the text as-is between the BeginText...EndText tags.

Autodesk Softimage v7.5