ColorToGrayscaleNo de

Introduced

7.0

UI Location

• Color

• Conversion

Description

Creates and outputs a new grayscale color value by converting the input color according to the specified red, green and blue weights. The weights are always normalized during the conversion.

Note: The specified input alpha component has no effect on the conversion. The resulting alpha component equals the alpha component of the specified input color.

Tip: For retrieving a single value instead of a color, use the ColorToBrightnessNode node.

Port Description

Inputs

Group ID | Instance s | Port Name | Connection Info | Description
0 | 1 | color | • Type: siICENodeDataColor4 • Structure: siICENodeStructureAny • Context: siICENodeContextAny | The color to convert.
redweight | • Type: siICENodeDataFloat • Structure: siICENodeStructureSingle • Context: siICENodeContextSingleton | The weight of the red component.
greenweight | • Type: siICENodeDataFloat • Structure: siICENodeStructureSingle • Context: siICENodeContextSingleton | The weight of the green component.
blueweight | • Type: siICENodeDataFloat • Structure: siICENodeStructureSingle • Context: siICENodeContextSingleton | The weight of the blue component.

Outputs

Port Name | Connection Info | Description
grayscalecolor | • Type: siICENodeDataColor4 • Structure: siICENodeStructureAny • Context: siICENodeContextAny | The new grayscale color.

Restrictions

• These structures must match: color, grayscalecolor

• These contexts must match: color, grayscalecolor

See Also

AddColorNode | BlendColorNode | ColorNode | ColorToBrightnessNode
ColorToHLSANode | ColorToHSVANode | ColorToRGBANode | GradientNode
HLSAToColorNode | HSVAToColorNode | MultiplyColorByScalarNode | RGBAToColorNode
SubtractColorNode |  |  |

Autodesk Softimage v7.5