2018-08-16 09:24:28 +00:00
|
|
|
import bpy
|
|
|
|
material = bpy.context.object.active_material
|
|
|
|
gpcolor = material.grease_pencil
|
|
|
|
|
|
|
|
gpcolor.mode = 'LINE'
|
|
|
|
gpcolor.stroke_style = 'SOLID'
|
|
|
|
gpcolor.color = (0.0, 0.0, 0.0, 1.0)
|
|
|
|
gpcolor.stroke_image = None
|
|
|
|
gpcolor.pixel_size = 100.0
|
2019-04-26 08:14:50 +00:00
|
|
|
gpcolor.mix_stroke_factor = 0.0
|
2019-05-20 14:40:57 +00:00
|
|
|
gpcolor.alignment_mode = 'PATH'
|
2018-08-16 09:24:28 +00:00
|
|
|
gpcolor.fill_style = 'SOLID'
|
|
|
|
gpcolor.fill_color = (0.5, 0.5, 0.5, 0.0)
|
|
|
|
gpcolor.fill_image = None
|
|
|
|
gpcolor.gradient_type = 'LINEAR'
|
|
|
|
gpcolor.mix_color = (1.0, 1.0, 1.0, 0.2)
|
|
|
|
gpcolor.mix_factor = 0.0
|
|
|
|
gpcolor.flip = False
|
|
|
|
gpcolor.texture_offset = (0.0, 0.0)
|
|
|
|
gpcolor.texture_scale = (1.0, 1.0)
|
|
|
|
gpcolor.texture_angle = 0.0
|
|
|
|
gpcolor.texture_clamp = False
|
|
|
|
gpcolor.mix_factor = 0.0
|
2018-11-03 08:56:51 +00:00
|
|
|
gpcolor.show_stroke = True
|
|
|
|
gpcolor.show_fill = False
|