Brushstroke Tools: Initial Version #328
@ -52,6 +52,17 @@ class BSBST_OT_new_brushstrokes(bpy.types.Operator):
|
|||||||
flow_data = bpy.data.hair_curves.new(name)
|
flow_data = bpy.data.hair_curves.new(name)
|
||||||
flow_object = bpy.data.objects.new(name, flow_data)
|
flow_object = bpy.data.objects.new(name, flow_data)
|
||||||
context.collection.objects.link(flow_object)
|
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
|
return flow_object
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
|
Loading…
Reference in New Issue
Block a user