playblast dest
2.0.0 - added: possibility to change playblast destination in preferences - changed: playblast default is `playblast` folder instead of `images` - changed: completely disable experimental precise eraser
This commit is contained in:
+21
-16
@@ -43,8 +43,8 @@ from . import OP_layer_picker
|
||||
from . import OP_layer_nav
|
||||
from . import OP_material_picker
|
||||
from . import OP_git_update
|
||||
from . import OP_eraser_brush
|
||||
from . import TOOL_eraser_brush
|
||||
# from . import OP_eraser_brush
|
||||
# from . import TOOL_eraser_brush
|
||||
from . import handler_draw_cam
|
||||
from . import keymaps
|
||||
|
||||
@@ -97,22 +97,21 @@ def remap_on_save_update(self, context):
|
||||
bpy.app.handlers.save_pre.remove(remap_relative)
|
||||
|
||||
|
||||
|
||||
def update_use_precise_eraser(self, context):
|
||||
|
||||
km, kmi = TOOL_eraser_brush.addon_keymaps[0]
|
||||
|
||||
kmi.active = self.use_precise_eraser
|
||||
## precise eraser
|
||||
# def update_use_precise_eraser(self, context):
|
||||
# km, kmi = TOOL_eraser_brush.addon_keymaps[0]
|
||||
# kmi.active = self.use_precise_eraser
|
||||
|
||||
|
||||
class GPTB_prefs(bpy.types.AddonPreferences):
|
||||
bl_idname = __name__
|
||||
|
||||
use_precise_eraser : BoolProperty(
|
||||
name='Precise Eraser',
|
||||
default=False,
|
||||
update=update_use_precise_eraser
|
||||
)
|
||||
## precise eraser
|
||||
# use_precise_eraser : BoolProperty(
|
||||
# name='Precise Eraser',
|
||||
# default=False,
|
||||
# update=update_use_precise_eraser)
|
||||
|
||||
## tabs
|
||||
|
||||
pref_tabs : EnumProperty(
|
||||
@@ -166,6 +165,11 @@ class GPTB_prefs(bpy.types.AddonPreferences):
|
||||
description="Path relative to blend to place render",
|
||||
default="//render", maxlen=0, subtype='DIR_PATH')
|
||||
|
||||
playblast_path : StringProperty(
|
||||
name="Playblast Path",
|
||||
description="Path to folder for playblasts output",
|
||||
default="//playblast", maxlen=0, subtype='DIR_PATH')
|
||||
|
||||
use_env_palettes : BoolProperty(
|
||||
name="Use Project Palettes",
|
||||
description="Load the palette path in environnement at startup (key 'PALETTES')",
|
||||
@@ -409,6 +413,7 @@ class GPTB_prefs(bpy.types.AddonPreferences):
|
||||
box.label(text='Playblast options:')
|
||||
box.prop(self, 'playblast_auto_play')
|
||||
box.prop(self, 'playblast_auto_open_folder')
|
||||
box.prop(self, 'playblast_path')
|
||||
|
||||
# box.separator()## Keyframe jumper
|
||||
|
||||
@@ -464,7 +469,7 @@ class GPTB_prefs(bpy.types.AddonPreferences):
|
||||
row.prop(self, 'nav_fade_in_time', text='Fade Back Time')
|
||||
# row.prop(self, 'nav_interval') # Do not expose refresh rate for now, not usefull to user...
|
||||
|
||||
box.prop(self, 'use_precise_eraser')
|
||||
# box.prop(self, 'use_precise_eraser') # precise eraser
|
||||
|
||||
if self.is_git_repo:
|
||||
box = layout.box()
|
||||
@@ -698,12 +703,12 @@ addon_modules = (
|
||||
OP_depth_move,
|
||||
OP_key_duplicate_send,
|
||||
OP_layer_manager,
|
||||
OP_eraser_brush,
|
||||
OP_material_picker,
|
||||
OP_git_update,
|
||||
OP_layer_picker,
|
||||
OP_layer_nav,
|
||||
TOOL_eraser_brush,
|
||||
# OP_eraser_brush,
|
||||
# TOOL_eraser_brush, # experimental eraser brush
|
||||
handler_draw_cam,
|
||||
UI_tools,
|
||||
keymaps,
|
||||
|
||||
Reference in New Issue
Block a user