From d7983e3638896e5742fcf1bafe49c49a6b0aa08f Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sat, 12 Oct 2013 14:09:05 +0000 Subject: Option to overlay mask over the footage Currently supports only two modes: - Show alpha channel of the mask - Multiply footage by the mask, which will give you final-looking combined image. TODO: Currently rasterization happens on every redraw, need to cache rasterized mask somewhere to make redraw more realtime. --- release/scripts/startup/bl_ui/properties_mask_common.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'release/scripts/startup/bl_ui/properties_mask_common.py') diff --git a/release/scripts/startup/bl_ui/properties_mask_common.py b/release/scripts/startup/bl_ui/properties_mask_common.py index aa4d671e938..45f3471ad35 100644 --- a/release/scripts/startup/bl_ui/properties_mask_common.py +++ b/release/scripts/startup/bl_ui/properties_mask_common.py @@ -222,6 +222,11 @@ class MASK_PT_display(): layout.prop(space_data, "mask_draw_type", text="") layout.prop(space_data, "show_mask_smooth") + layout.prop(space_data, "show_mask_overlay") + row = layout.row() + row.active = space_data.show_mask_overlay + row.prop(space_data, "mask_overlay_mode", text="") + class MASK_PT_tools(): # subclasses must define... -- cgit v1.2.3