set_color_ramp_interpolation
Set a ColorRamp node's interpolation and color mode to control blending between stops, creating hard-edged bands, softer falloff, or hue sweeps in Blender materials.
Instructions
Set how a ColorRamp blends between its stops.
'CONSTANT' gives hard-edged bands with no blending, which is what turns a noise or voronoi texture into discrete regions: scale plates, cracked mud, stylised cel shading. 'EASE' and 'B_SPLINE' give softer falloff than 'LINEAR'. Set color_mode to 'HSV' to sweep through hues between two stops rather than blending through grey.
Args: material_name: Name of the material. node_name: Name of the ColorRamp node. interpolation: One of EASE, CARDINAL, LINEAR, B_SPLINE, CONSTANT. color_mode: Optional. One of RGB, HSV, HSL. Omit to leave unchanged.
Returns: Dict with the applied interpolation and color mode.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node_name | Yes | ||
| color_mode | No | ||
| interpolation | Yes | ||
| material_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||