brush palette loading feature

1.4.3

- feat: load brushes from blend (behave like a Brush palette)
- ui: add load brushes within tool brush dropdown panel and in the top bar in drawmode
- pref: Set project brushes folder in addon preferences
This commit is contained in:
Pullusb
2021-06-14 17:41:41 +02:00
parent 94e3b7a7ad
commit 682048af63
3 changed files with 94 additions and 2 deletions
+11 -2
View File
@@ -15,7 +15,7 @@ bl_info = {
"name": "GP toolbox",
"description": "Set of tools for Grease Pencil in animation production",
"author": "Samuel Bernou",
"version": (1, 4, 2),
"version": (1, 4, 3),
"blender": (2, 91, 0),
"location": "Sidebar (N menu) > Gpencil > Toolbox / Gpencil properties",
"warning": "",
@@ -41,6 +41,7 @@ from . import OP_helpers
from . import OP_keyframe_jump
from . import OP_cursor_snap_canvas
from . import OP_palettes
from . import OP_brushes
from . import OP_file_checker
from . import OP_render
from . import OP_copy_paste
@@ -192,6 +193,11 @@ class GPTB_prefs(bpy.types.AddonPreferences):
description="Path to palette containing palette.json files to save and load",
default="//", maxlen=0, subtype='DIR_PATH')#, update = set_palette_path
brush_path : StringProperty(
name="Brushes directory",
description="Path to brushes containing the blends holding the brushes",
default="//", maxlen=0, subtype='DIR_PATH')#, update = set_palette_path
## Playblast prefs
playblast_auto_play : BoolProperty(
name="Playblast auto play",
@@ -311,8 +317,9 @@ class GPTB_prefs(bpy.types.AddonPreferences):
row.prop(self, 'render_res_x', text='Width')
row.prop(self, 'render_res_y', text='Height')
## Palette
box.label(text='Palette library folder:')
box.label(text='Project folders:')
box.prop(self, 'palette_path')
box.prop(self, 'brush_path')
## render output
box.prop(self, 'output_path')
@@ -443,6 +450,7 @@ def register():
OP_playblast_bg.register()
OP_playblast.register()
OP_palettes.register()
OP_brushes.register()
OP_cursor_snap_canvas.register()
OP_render.register()
OP_copy_paste.register()
@@ -478,6 +486,7 @@ def unregister():
OP_copy_paste.unregister()
OP_render.unregister()
OP_cursor_snap_canvas.unregister()
OP_brushes.unregister()
OP_palettes.unregister()
OP_file_checker.unregister()
OP_helpers.unregister()