The color Chooser libraries provide Color swatches and color utility functions. Color swatches are a system to handle colors or color groups. These color groups can be stored with Cinema 4D itself, a BaseDocument or a preset.
Classic API:
- c4d.modules.colorchooser: Provides statics methods to handle color.
- c4d.modules.colorchooser.ColorSwatchData: Stores multiple ColorSwatchGroup objects.
- c4d.modules.colorchooser.ColorSwatchGroup: Stores multiple colors as maxon::ColorA.
Reads the color parameter of the given material and prints the value as RGB and HSV.
Reads the color value from the active material.
Calculates the complementary color and applies it to new material.
Calculates an RGB value from a light color and applies it to the given "Light" object.
Loads a Cinema 4D scene file to get the stored color swatches.
The loaded swatches are applied to the active document.
Loads the swatches of the given BaseDocument and stores them as a preset.
Creates a swatch group and adds rainbow colors to it.
Reads all the colors from the first swatch group in the active document and creates material for each one.