GPencilStroke(bpy_struct)¶
base class — bpy_struct
-
class
bpy.types.
GPencilStroke
(bpy_struct)¶ Freehand curve defining part of a sketch
-
color
¶ Color from palette used in Stroke
Type: GPencilPaletteColor
, (readonly)
-
colorname
¶ Palette color name
Type: string, default “”, (never None)
-
draw_cyclic
¶ Enable cyclic drawing, closing the stroke
Type: boolean, default False
-
draw_mode
¶ SCREEN
Screen, Stroke is in screen-space.3DSPACE
3D Space, Stroke is in 3D-space.2DSPACE
2D Space, Stroke is in 2D-space.2DIMAGE
2D Image, Stroke is in 2D-space (but with special ‘image’ scaling).
Type: enum in [‘SCREEN’, ‘3DSPACE’, ‘2DSPACE’, ‘2DIMAGE’], default ‘SCREEN’
-
line_width
¶ Thickness of stroke (in pixels)
Type: int in [1, 300], default 0
-
points
¶ Stroke data points
Type: GPencilStrokePoints
bpy_prop_collection
ofGPencilStrokePoint
, (readonly)
-
select
¶ Stroke is selected for viewport editing
Type: boolean, default False
-
triangles
¶ Triangulation data for HQ fill
Type: bpy_prop_collection
ofGPencilTriangle
, (readonly)
-
Inherited Properties
Inherited Functions
References