diff options
author | Antonioya <blendergit@gmail.com> | 2018-08-16 12:24:28 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2018-08-16 12:24:45 +0300 |
commit | 59670e999a436a05858495ef448f34447584856a (patch) | |
tree | f2922200651f094ac11cd2109e8812e326bcc2da /release/scripts/presets/gpencil_material | |
parent | 02e9dba07be7d912eefb30362512a93c91fe6296 (diff) |
GP: Add new presets for materials
This allow create prests without import materials and include a requested predefined settings for Stroke only, Fill only and Stroke and Fill.
Diffstat (limited to 'release/scripts/presets/gpencil_material')
3 files changed, 90 insertions, 0 deletions
diff --git a/release/scripts/presets/gpencil_material/fill_only.py b/release/scripts/presets/gpencil_material/fill_only.py new file mode 100644 index 00000000000..00cf8663f41 --- /dev/null +++ b/release/scripts/presets/gpencil_material/fill_only.py @@ -0,0 +1,30 @@ +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, 0.0) +gpcolor.stroke_image = None +gpcolor.pixel_size = 100.0 +gpcolor.use_stroke_pattern = False +gpcolor.fill_style = 'SOLID' +gpcolor.fill_color = (0.5, 0.5, 0.5, 1.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.pattern_shift = (0.0, 0.0) +gpcolor.pattern_scale = (1.0, 1.0) +gpcolor.pattern_radius = 0.5 +gpcolor.pattern_angle = 0.0 +gpcolor.pattern_gridsize = 0.1 +gpcolor.use_fill_pattern = False +gpcolor.texture_offset = (0.0, 0.0) +gpcolor.texture_scale = (1.0, 1.0) +gpcolor.texture_angle = 0.0 +gpcolor.texture_opacity = 1.0 +gpcolor.texture_clamp = False +gpcolor.texture_mix = False +gpcolor.mix_factor = 0.0 diff --git a/release/scripts/presets/gpencil_material/stroke_and_fill.py b/release/scripts/presets/gpencil_material/stroke_and_fill.py new file mode 100644 index 00000000000..8c3aca4f829 --- /dev/null +++ b/release/scripts/presets/gpencil_material/stroke_and_fill.py @@ -0,0 +1,30 @@ +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 +gpcolor.use_stroke_pattern = False +gpcolor.fill_style = 'SOLID' +gpcolor.fill_color = (0.5, 0.5, 0.5, 1.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.pattern_shift = (0.0, 0.0) +gpcolor.pattern_scale = (1.0, 1.0) +gpcolor.pattern_radius = 0.5 +gpcolor.pattern_angle = 0.0 +gpcolor.pattern_gridsize = 0.1 +gpcolor.use_fill_pattern = False +gpcolor.texture_offset = (0.0, 0.0) +gpcolor.texture_scale = (1.0, 1.0) +gpcolor.texture_angle = 0.0 +gpcolor.texture_opacity = 1.0 +gpcolor.texture_clamp = False +gpcolor.texture_mix = False +gpcolor.mix_factor = 0.0 diff --git a/release/scripts/presets/gpencil_material/stroke_only.py b/release/scripts/presets/gpencil_material/stroke_only.py new file mode 100644 index 00000000000..04262593275 --- /dev/null +++ b/release/scripts/presets/gpencil_material/stroke_only.py @@ -0,0 +1,30 @@ +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 +gpcolor.use_stroke_pattern = False +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.pattern_shift = (0.0, 0.0) +gpcolor.pattern_scale = (1.0, 1.0) +gpcolor.pattern_radius = 0.5 +gpcolor.pattern_angle = 0.0 +gpcolor.pattern_gridsize = 0.1 +gpcolor.use_fill_pattern = False +gpcolor.texture_offset = (0.0, 0.0) +gpcolor.texture_scale = (1.0, 1.0) +gpcolor.texture_angle = 0.0 +gpcolor.texture_opacity = 1.0 +gpcolor.texture_clamp = False +gpcolor.texture_mix = False +gpcolor.mix_factor = 0.0 |