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.
// get accessor Object rtn = Renderer.DefaultChannels; |
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 ] ] + ")" ); |