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 8e8ff6d687 - Show all commits

View File

@ -52,6 +52,17 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
flow_data = bpy.data.hair_curves.new(name)
flow_object = bpy.data.objects.new(name, flow_data)
context.collection.objects.link(flow_object)
visibility_options = [
'visible_camera',
'visible_diffuse',
'visible_glossy',
'visible_transmission',
'visible_volume_scatter',
'visible_shadow',
]
for vis in visibility_options:
setattr(flow_object, vis, False)
return flow_object
def execute(self, context):