NewScene( null, false );
oCube = ActiveSceneRoot.AddGeometry( "Cube", "MeshSurface" );
oShader = oCube.Material.surface.ConnectFromProgid( "Softimage.rh_renderer.1" );
LogMessage( "Shader Version: " + oShader.RendererOptionValue( "mental ray", "version" ) );
LogMessage( "Requires autovolume: " + oShader.RendererOptionValue( "mental ray", "autovolume" ) );
LogMessage( "Requires 1st derivative: " + oShader.RendererOptionValue( "mental ray", "derivative1" ) );
// INFO : "Shader Version: 1"
// INFO : "Requires autovolume: true"
// INFO : "Requires 1st derivative: undefined" |