Renderer.DefaultChannels

Description

Returns a two-dimensional Array containing a list of channel name and siRenderChannelType pairs. The default channels are render channels that the rendering engine provides and fills in automatically.

C# Syntax

// get accessor
Object rtn = Renderer.DefaultChannels;

Examples

JScript Example

var oMentalRay = Application.Renderers( "mental ray" )
var oChannels = new VBArray( oMentalRay.DefaultChannels ).toArray();
var aChannelTypeNames = new Array( "Unknown", "Color", "Grayscale", "Depth", "Normal", "Vector", "Label" );
LogMessage( "  Provided channels:" );
for( var i = 0; i < oChannels.length; i += 2 )
	LogMessage( "    " + oChannels[ i ] + " (" + aChannelTypeNames[ oChannels[ i + 1 ] ] + ")" );