CurveMapping(bpy_struct)

base class — bpy_struct

class bpy.types.CurveMapping.CurveMapping(bpy_struct)

Curve mapping to map color, vector and scalar values to other values using a user defined curve

black_level

For RGB curves, the color that black is mapped to

Type

float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

clip_max_x
Type

float in [-100, 100], default 0.0

clip_max_y
Type

float in [-100, 100], default 0.0

clip_min_x
Type

float in [-100, 100], default 0.0

clip_min_y
Type

float in [-100, 100], default 0.0

curves
Type

bpy_prop_collection of CurveMap, (readonly)

extend

Extrapolate the curve or extend it horizontally

Type

enum in [‘HORIZONTAL’, ‘EXTRAPOLATED’], default ‘HORIZONTAL’

tone

Tone of the curve

Type

enum in [‘STANDARD’, ‘FILMLIKE’], default ‘STANDARD’

use_clip

Force the curve view to fit a defined boundary

Type

boolean, default False

white_level

For RGB curves, the color that white is mapped to

Type

float array of 3 items in [-inf, inf], default (0.0, 0.0, 0.0)

update()

Update curve mapping after making changes

initialize()

Initialize curve

evaluate(curve, position)

Evaluate curve at given location

Parameters
  • curve (CurveMap, (never None)) – curve, Curve to evaluate

  • position (float in [-inf, inf]) – Position, Position to evaluate curve at

Returns

Value, Value of curve at given location

Return type

float in [-inf, inf]

classmethod bl_rna_get_subclass(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The RNA type or default when not found.

Return type

bpy.types.Struct subclass

classmethod bl_rna_get_subclass_py(id, default=None)
Parameters

id (string) – The RNA type identifier.

Returns

The class or default when not found.

Return type

type

Inherited Properties

  • bpy_struct.id_data

Inherited Functions

  • bpy_struct.as_pointer

  • bpy_struct.driver_add

  • bpy_struct.driver_remove

  • bpy_struct.get

  • bpy_struct.is_property_hidden

  • bpy_struct.is_property_overridable_library

  • bpy_struct.is_property_readonly

  • bpy_struct.is_property_set

  • bpy_struct.items

  • bpy_struct.keyframe_delete

  • bpy_struct.keyframe_insert

  • bpy_struct.keys

  • bpy_struct.path_from_id

  • bpy_struct.path_resolve

  • bpy_struct.pop

  • bpy_struct.property_overridable_library_set

  • bpy_struct.property_unset

  • bpy_struct.type_recast

  • bpy_struct.values

References

  • AreaLight.falloff_curve

  • Brush.curve

  • BrushGpencilSettings.curve_jitter

  • BrushGpencilSettings.curve_random_hue

  • BrushGpencilSettings.curve_random_pressure

  • BrushGpencilSettings.curve_random_saturation

  • BrushGpencilSettings.curve_random_strength

  • BrushGpencilSettings.curve_random_uv

  • BrushGpencilSettings.curve_random_value

  • BrushGpencilSettings.curve_sensitivity

  • BrushGpencilSettings.curve_strength

  • ColorGpencilModifier.curve

  • ColorManagedViewSettings.curve_mapping

  • CompositorNodeCurveRGB.mapping

  • CompositorNodeCurveVec.mapping

  • CompositorNodeHueCorrect.mapping

  • CompositorNodeTime.curve

  • CurvesModifier.curve_mapping

  • GPencilInterpolateSettings.interpolation_curve

  • GPencilSculptSettings.multiframe_falloff_curve

  • GPencilSculptSettings.thickness_primitive_curve

  • HookGpencilModifier.falloff_curve

  • HookModifier.falloff_curve

  • HueCorrectModifier.curve_mapping

  • LineStyleAlphaModifier_AlongStroke.curve

  • LineStyleAlphaModifier_CreaseAngle.curve

  • LineStyleAlphaModifier_Curvature_3D.curve

  • LineStyleAlphaModifier_DistanceFromCamera.curve

  • LineStyleAlphaModifier_DistanceFromObject.curve

  • LineStyleAlphaModifier_Material.curve

  • LineStyleAlphaModifier_Noise.curve

  • LineStyleAlphaModifier_Tangent.curve

  • LineStyleThicknessModifier_AlongStroke.curve

  • LineStyleThicknessModifier_CreaseAngle.curve

  • LineStyleThicknessModifier_Curvature_3D.curve

  • LineStyleThicknessModifier_DistanceFromCamera.curve

  • LineStyleThicknessModifier_DistanceFromObject.curve

  • LineStyleThicknessModifier_Material.curve

  • LineStyleThicknessModifier_Tangent.curve

  • NoiseGpencilModifier.curve

  • OpacityGpencilModifier.curve

  • Paint.cavity_curve

  • ParticleBrush.curve

  • ParticleSettings.clump_curve

  • ParticleSettings.roughness_curve

  • ParticleSettings.twist_curve

  • PointLight.falloff_curve

  • RenderSettings.motion_blur_shutter_curve

  • ShaderNodeRGBCurve.mapping

  • ShaderNodeVectorCurve.mapping

  • SmoothGpencilModifier.curve

  • SpotLight.falloff_curve

  • TextureNodeCurveRGB.mapping

  • TextureNodeCurveTime.curve

  • ThickGpencilModifier.curve

  • TintGpencilModifier.curve

  • VertexWeightEditModifier.map_curve

  • WarpModifier.falloff_curve