snnib.blender.utils.geo_nodes_utils.set_node_curve

snnib.blender.utils.geo_nodes_utils.set_node_curve(node: bpy.types.ShaderNodeRGBCurve, channel_index: int, pts: List[List[float]], handle_types: List[str] = None)[source]

overrides node curve (i.e. RGB Curves node) with new curve

Parameters
  • node
    • bpy.types.ShaderNodeRGBCurve

    • node to update the curve of

  • channel_index
    • int

    • index of the channel to target
      • 0 > r

      • 1 > g

      • 2 > b

      • 3 > combined

  • pts
    • List[List[float]]

    • coordinates to place the control points at

  • handle_types
    • List[str], optional

    • handle types to use for each point in pts

    • the default is None
      • uses default settings

Raises

Returns

Dependencies
  • bpy

  • logging

  • typing