# MaterialGPencilStyle(bpy_struct)

base class — `bpy_struct`

class `bpy.types.``MaterialGPencilStyle`(bpy_struct)
  `alignment_mode`

    Defines how align Dots and Boxes with drawing path and object rotation

    - `PATH` Path, Follow stroke drawing path and object rotation.
    - `OBJECT` Object, Follow object rotation only.
    - `FIXED` Fixed, Do not follow drawing path or object rotation and keeps aligned with viewport.

    Type: | enum in [‘PATH’, ‘OBJECT’, ‘FIXED’], default ‘PATH’

  `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.
    - `CHECKER` Checker Board, Fill area with checkerboard pattern.
    - `TEXTURE` Texture, Fill area with image texture.

    Type: | enum in [‘SOLID’, ‘GRADIENT’, ‘CHECKER’, ‘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

  `mix_stroke_factor`

    Mix Stroke Color

    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_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_fill_texture_mix`

    Mix texture image with filling color

    Type: | boolean, default False

  `use_overlap_strokes`

    Disable stencil and overlap self intersections with alpha materials

    Type: | boolean, default False

  `use_stroke_pattern`

    Use Stroke Texture as a pattern to apply color

    Type: | boolean, default False

  `use_stroke_texture_mix`

    Mix texture image with stroke 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

`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

`Material.grease_pencil` |