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
Showing only changes of commit e22d858587 - Show all commits

View File

@ -374,6 +374,9 @@ class BSBST_OT_init_preset(bpy.types.Operator):
utils.mark_socket_context_type(mod_info, 'Socket_2', 'SURFACE_OBJECT')
# ui visibility settings
mod_info.hide_ui = True
## brushstrokes
mod = preset_object.modifiers.new('Brushstrokes', 'NODES')
mod.node_group = bpy.data.node_groups['.brushstroke_tools.surface_draw']
@ -386,6 +389,26 @@ class BSBST_OT_init_preset(bpy.types.Operator):
utils.mark_socket_context_type(mod_info, 'Socket_2', 'SURFACE_OBJECT')
utils.mark_socket_context_type(mod_info, 'Socket_4', 'MATERIAL')
utils.mark_socket_context_type(mod_info, 'Socket_6', 'RANDOM')
utils.mark_socket_context_type(mod_info, 'Socket_12', 'UVMAP')
# ui visibility settings
hide_sockets =[
'Socket_2',
'Socket_3',
'Socket_4',
'Socket_6',
'Socket_12',
'Socket_15',
'Socket_24',
]
for s in hide_sockets:
utils.mark_socket_hidden(mod_info, s)
hide_panels = [
'Debug',
]
for p in hide_panels:
utils.mark_panel_hidden(mod_info, p)
def execute(self, context):