LineStyleColorModifier_Material(LineStyleColorModifier)

base classes — bpy_struct, LineStyleModifier, LineStyleColorModifier

class bpy.types.LineStyleColorModifier_Material(LineStyleColorModifier)

Change line color based on a material attribute

blend

Specify how the modifier value is blended into the base value

Type:enum in [‘MIX’, ‘ADD’, ‘MULTIPLY’, ‘SUBTRACT’, ‘SCREEN’, ‘DIVIDE’, ‘DIFFERENCE’, ‘DARKEN’, ‘LIGHTEN’, ‘OVERLAY’, ‘DODGE’, ‘BURN’, ‘HUE’, ‘SATURATION’, ‘VALUE’, ‘COLOR’, ‘SOFT_LIGHT’, ‘LINEAR_LIGHT’], default ‘MIX’
color_ramp

Color ramp used to change line color

Type:ColorRamp, (readonly)
expanded

True if the modifier tab is expanded

Type:boolean, default False
influence

Influence factor by which the modifier changes the property

Type:float in [0, 1], default 0.0
material_attribute

Specify which material attribute is used

Type:enum in [‘LINE’, ‘LINE_R’, ‘LINE_G’, ‘LINE_B’, ‘LINE_A’, ‘DIFF’, ‘DIFF_R’, ‘DIFF_G’, ‘DIFF_B’, ‘SPEC’, ‘SPEC_R’, ‘SPEC_G’, ‘SPEC_B’, ‘SPEC_HARD’, ‘ALPHA’], default ‘LINE’
name

Name of the modifier

Type:string, default “”, (never None)
type

Type of the modifier

Type:enum in [‘ALONG_STROKE’, ‘DISTANCE_FROM_CAMERA’, ‘DISTANCE_FROM_OBJECT’, ‘MATERIAL’], default ‘ALONG_STROKE’, (readonly)
use

Enable or disable this modifier during stroke rendering

Type:boolean, default False
use_ramp

Use color ramp to map the BW average into an RGB color

Type:boolean, default False

Inherited Properties

Inherited Functions