Draw cam passepartout and UI changes
This commit is contained in:
+9
-5
@@ -10,15 +10,18 @@ from bpy.props import (
|
||||
from .OP_cursor_snap_canvas import cursor_follow_update
|
||||
|
||||
def change_edit_lines_opacity(self, context):
|
||||
# for o in context.scene.objects:
|
||||
# if o.type != 'GPENCIL':
|
||||
# continue
|
||||
# o.data.edit_line_color[3]=self.edit_lines_opacity
|
||||
for gp in bpy.data.grease_pencils:
|
||||
if not gp.is_annotation:
|
||||
gp.edit_line_color[3]=self.edit_lines_opacity
|
||||
|
||||
class GP_PG_ToolsSettings(bpy.types.PropertyGroup) :
|
||||
|
||||
drawcam_passepartout : BoolProperty(
|
||||
name="Show cam passepartout",
|
||||
description="Show a darkened overlay outside image area in Camera view",
|
||||
default=True,
|
||||
options={'HIDDEN'})
|
||||
|
||||
autotint_offset : IntProperty(
|
||||
name="Tint hue offset", description="offset the tint by this value for better color",
|
||||
default=0, min=-5000, max=5000, soft_min=-999, soft_max=999, step=1,
|
||||
@@ -38,7 +41,8 @@ class GP_PG_ToolsSettings(bpy.types.PropertyGroup) :
|
||||
default=False, update=cursor_follow_update)
|
||||
|
||||
edit_lines_opacity : FloatProperty(
|
||||
name="edit lines Opacity", description="Change edit lines opacity for all grease pencils", default=0.5, min=0.0, max=1.0, step=3, precision=2, update=change_edit_lines_opacity)#, get=None, set=None
|
||||
name="edit lines Opacity", description="Change edit lines opacity for all grease pencils",
|
||||
default=0.5, min=0.0, max=1.0, step=3, precision=2, update=change_edit_lines_opacity)
|
||||
|
||||
## render
|
||||
name_for_current_render : StringProperty(
|
||||
|
||||
Reference in New Issue
Block a user