Brushstroke Tools: Initial Version #328
Binary file not shown.
@ -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']
|
||||
|
@ -12,6 +12,7 @@ ng_list = [
|
||||
".brushstroke_tools.surface_fill",
|
||||
".brushstroke_tools.surface_draw",
|
||||
".brushstroke_tools.geometry_input",
|
||||
".brushstroke_tools.mask_surface",
|
||||
]
|
||||
|
||||
linkable_sockets = [
|
||||
|
Loading…
Reference in New Issue
Block a user