MaterialGPencilStyle(bpy_struct)

base class — bpy_struct

class bpy.types.MaterialGPencilStyle(bpy_struct)
color
Type:float array of 4 items in [0, 1], default (0.0, 0.0, 0.0, 0.0)
fill_color

Color for filling region bounded by each stroke

Type:float array of 4 items in [0, 1], default (0.0, 0.0, 0.0, 0.0)
fill_image
Type:Image
fill_style

Select style used to fill strokes

  • SOLID Solid, Fill area with solid color.
  • GRADIENT Gradient, Fill area with gradient color.
  • CHESSBOARD Checker Board, Fill area with chessboard pattern.
  • TEXTURE Texture, Fill area with image texture.
Type:enum in [‘SOLID’, ‘GRADIENT’, ‘CHESSBOARD’, ‘TEXTURE’], default ‘SOLID’
flip

Flip filling colors

Type:boolean, default False
ghost

Display strokes using this color when showing onion skins

Type:boolean, default False
gradient_type

Select type of gradient used to fill strokes

  • LINEAR Linear, Fill area with gradient color.
  • RADIAL Radial, Fill area with radial gradient.
Type:enum in [‘LINEAR’, ‘RADIAL’], default ‘LINEAR’
hide

Set color Visibility

Type:boolean, default False
is_fill_visible

True when opacity of fill is set high enough to be visible

Type:boolean, default False, (readonly)
is_stroke_visible

True when opacity of stroke is set high enough to be visible

Type:boolean, default False, (readonly)
lock

Protect color from further editing and/or frame changes

Type:boolean, default False
mix_color

Color for mixing with primary filling color

Type:float array of 4 items in [0, 1], default (0.0, 0.0, 0.0, 0.0)
mix_factor

Mix Adjustment Factor

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

Select draw mode for stroke

  • LINE Line, Draw strokes using a continuous line.
  • DOTS Dots, Draw strokes using separated dots.
  • BOX Boxes, Draw strokes using separated rectangle boxes.
Type:enum in [‘LINE’, ‘DOTS’, ‘BOX’], default ‘LINE’
pass_index

Index number for the “Color Index” pass

Type:int in [0, 32767], default 0
pattern_angle

Pattern Orientation Angle

Type:float in [-inf, inf], default 0.0
pattern_gridsize

Box Size

Type:float in [0.0001, 10], default 0.0
pattern_radius

Pattern Radius

Type:float in [0.0001, 10], default 0.0
pattern_scale

Scale Factor for UV coordinates

Type:float array of 2 items in [-inf, inf], default (0.0, 0.0)
pattern_shift

Shift filling pattern in 2d space

Type:float array of 2 items in [-inf, inf], default (0.0, 0.0)
pixel_size

Texture Pixel Size factor along the stroke

Type:float in [1, 5000], default 0.0
show_fill

Show stroke fills of this material

Type:boolean, default False
show_stroke

Show stroke lines of this material

Type:boolean, default False
stroke_image
Type:Image
stroke_style

Select style used to draw strokes

  • SOLID Solid, Draw strokes with solid color.
  • TEXTURE Texture, Draw strokes using texture.
Type:enum in [‘SOLID’, ‘TEXTURE’], default ‘SOLID’
texture_angle

Texture Orientation Angle

Type:float in [-inf, inf], default 0.0
texture_clamp

Do not repeat texture and clamp to one instance only

Type:boolean, default False
texture_mix

Mix texture image with filling colors

Type:boolean, default False
texture_offset

Shift Texture in 2d Space

Type:float array of 2 items in [-inf, inf], default (0.0, 0.0)
texture_opacity

Texture Opacity

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

Scale Factor for Texture

Type:float array of 2 items in [-inf, inf], default (0.0, 0.0)
use_fill_pattern

Use Fill Texture as a pattern to apply color

Type:boolean, default False
use_stroke_pattern

Use Stroke Texture as a pattern to apply color

Type:boolean, default False
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

Inherited Functions

References