Brushstroke Tools: Initial Version #328

Merged
Simon Thommes merged 229 commits from SimonThommes/blender-studio-tools:brushstroke_tools-initial-version into main 2024-11-06 15:03:47 +01:00
3 changed files with 21 additions and 0 deletions
Showing only changes of commit d45af99422 - Show all commits

View File

@ -661,6 +661,26 @@ class BSBST_OT_init_preset(bpy.types.Operator):
# ui visibility settings
mod_info.hide_ui = True
mod_info.default_closed = True
## masking
mod = preset_object.modifiers.new('Masking', 'NODES')
mod.node_group = bpy.data.node_groups['.brushstroke_tools.mask_surface']
mod_info = settings.preset_object.modifier_info.get(mod.name)
if not mod_info:
mod_info = settings.preset_object.modifier_info.add()
mod_info.name = mod.name
mod_info.default_closed = True
# ui visibility settings
hide_sockets =[
'Socket_5',
]
for s in hide_sockets:
utils.mark_socket_hidden(mod_info, s)
## brushstrokes
mod = preset_object.modifiers.new('Brushstrokes', 'NODES')
mod.node_group = bpy.data.node_groups['.brushstroke_tools.surface_fill']

View File

@ -12,6 +12,7 @@ ng_list = [
".brushstroke_tools.surface_fill",
".brushstroke_tools.surface_draw",
".brushstroke_tools.geometry_input",
".brushstroke_tools.mask_surface",
]
linkable_sockets = [