set_color_ramp_element
Move or recolor a ColorRamp stop in a Blender material. Provide material name, node name, stop index, and optional new position or color.
Instructions
Move or recolor an existing ColorRamp stop.
At least one of position or color must be given. Moving a stop past a neighbour reorders the ramp, so indices may shift after this call — read the ramp back with get_color_ramp if you need certainty.
Args: material_name: Name of the material. node_name: Name of the ColorRamp node. index: Zero-based index of the stop to edit. position: New position, 0.0 to 1.0. Omit to leave unchanged. color: New RGB or RGBA color. Omit to leave unchanged.
Returns: Dict with the element's resulting position and color.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| index | Yes | ||
| position | No | ||
| node_name | Yes | ||
| material_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||