Brushstroke Tools: Initial Version #328
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user