[Bf-blender-cvs] [a783cfd] GPencil_EditStrokes: Experimenting with contents of secondary GPencil pie

Joshua Leung noreply at git.blender.org
Sun Nov 30 01:01:51 CET 2014


Commit: a783cfddb266888bfc9f1e8745cb51236b8bee1c
Author: Joshua Leung
Date:   Sun Nov 30 13:01:35 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rBa783cfddb266888bfc9f1e8745cb51236b8bee1c

Experimenting with contents of secondary GPencil pie

Now that we can properly add interactive widgets, this commit adds some
quick access to some commonly tweaked settings such as color (stroke/fill),
opacity, line thickness, and onionskinning.

===================================================================

M	release/scripts/startup/bl_ui/properties_grease_pencil_common.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
index bd043ed..b488070 100644
--- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
+++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py
@@ -159,7 +159,7 @@ class GPENCIL_PIE_tool_palette(Menu):
         pie = layout.menu_pie()
         gpd = context.gpencil_data
 
-        # W - Drawing Settings
+        # W - Drawing Types
         col = pie.column()
         col.operator("gpencil.draw", text="Draw", icon='GREASEPENCIL').mode = 'DRAW'
         col.operator("gpencil.draw", text="Straight Lines", icon='LINE_DATA').mode = 'DRAW_STRAIGHT'
@@ -222,12 +222,38 @@ class GPENCIL_PIE_tools_more(Menu):
 
         pie = layout.menu_pie()
         gpd = context.gpencil_data
+        gpl = context.active_gpencil_layer
+
+        # W - Stroke draw settings
+        col = pie.column(align=True)
+        col.label(text="Stroke")
+        col.prop(gpl, "color", text="")
+        col.prop(gpl, "alpha", text="", slider=True)
+
+        # E - Fill draw settings
+        col = pie.column(align=True)
+        col.label(text="Fill")
+        col.prop(gpl, "fill_color", text="")
+        col.prop(gpl, "fill_alpha", text="", slider=True)
 
+        # S - Layer settings
+        col = pie.column()
+        col.prop(gpl, "line_width", slider=True)
+        #col.prop(gpl, "use_volumetric_strokes")
+        col.prop(gpl, "use_onion_skinning")
+
+        # N - Active Layer
+        #XXX
+        col = pie.column()
+        col.label("Active Layer:")
+        col.prop(gpl, "info")
+		
+        # (Others) - Other tools
+        # XXX: these shouldn't be here?
         pie.operator("transform.mirror", icon='MOD_MIRROR').gpencil_strokes = True
         pie.operator("transform.bend").gpencil_strokes = True
         #pie.operator("transform.warp").gpencil_strokes = True
 
-
 ###############################
 
 class GPENCIL_UL_layer(UIList):




More information about the Bf-blender-cvs mailing list