MAXScript Extensions > MAXScript Extensions for mental ray > Conversion, Math and Pass-Through Shaders >

# Math_Color_Mix : textureMap

    Math_Color_Mix - superclass: textureMap; super-superclass:material - 18:2 - classID: #(450570140, -1900816243)

Available in 3ds Max 2011 and higher.This is amultiple-outputMetaSL shader which performs Color Mixing.

Constructor:

    Math_Color_Mix...

Properties:

    <Math_Color_Mix>.'#TheList'

    <Math_Color_Mix>.'#Shader_Version'

    <Math_Color_Mix>.'#numInputs'<Math_Color_Mix>.color1Color default: (color 0 0 0) -- animatable; fRGBA color; Controller Scaling: ([1,1,1,1] : (color 255 255 255)); WeirdScaled ([1,1,1,1])

    <Math_Color_Mix>.color1_connectedBooleanClass default: false -- boolean

    <Math_Color_Mix>.color1_paramNameUndefinedClass default: undefined -- string; !error setting value!

    <Math_Color_Mix>.color1_shaderUndefinedClass default: undefined -- texturemap

    <Math_Color_Mix>.color2Color default: (color 255 255 255) -- animatable; fRGBA color; Controller Scaling: ([1,1,1,1] : (color 255 255 255)); WeirdScaled ([1,1,1,1])

    <Math_Color_Mix>.color2_connectedBooleanClass default: false -- boolean

    <Math_Color_Mix>.color2_paramNameUndefinedClass default: undefined -- string; !error setting value!

    <Math_Color_Mix>.color2_shaderUndefinedClass default: undefined -- texturemap

    <Math_Color_Mix>.Connection_struct__0000__Math_color_mixUndefinedClass default: undefined -- paramBlock2

    <Math_Color_Mix>.Math_color_mixUndefinedClass default: undefined -- paramBlock2

    <Math_Color_Mix>.mixColor default: (color 127.5 127.5 127.5 127.5) -- animatable; fRGBA color; Controller Scaling: ([1,1,1,1] : (color 255 255 255)); WeirdScaled ([1,1,1,1])

    <Math_Color_Mix>.mix_connectedBooleanClass default: false -- boolean

    <Math_Color_Mix>.mix_paramNameUndefinedClass default: undefined -- string; !error setting value!

    <Math_Color_Mix>.mix_shaderUndefinedClass default: undefined -- texturemap

    <Math_Color_Mix>.numIMultipleOutputChannelsInteger default: 1 -- integer; !error setting value!

## Math_Color_Mix interfaces:

    Interface:IMtlRender_Compability_MtlBase

Properties:

Methods:

Actions:

    Interface:iMultipleOutputChannels

Properties:

    .numIMultipleOutputChannels: integer : Read

Methods:

    <TSTR by value>getIMultipleOutputChannelLocalizedName

    <index>index <TSTR by value>getIMultipleOutputChannelName

    <index>index

    Interface:iMultiOutputConsumer

Properties:

    .numInputs: integer : Read

Methods:

     <bool>SetOutputToInput

    <index>input_index <maxObject>output_rtarg <index>output_index <maxObject>GetOutputRefTargetFromInput

    <index>input_index <index>GetOutputIndexFromInput

    <index>input_index <bool>CanAssignOutputToInput

    <index>input_index <maxObject>output_rtarg <index>output_index <TSTR by value>GetInputName

    <index>input_index <TSTR by value>GetInputLocalizedName

    <index>input_index