black ifcsverchok

This commit is contained in:
htlcnn
2020-11-01 19:24:01 +07:00
committed by Dion Moult
parent 4a6ec11f6f
commit 2c9d6a47f4
18 changed files with 245 additions and 203 deletions
+5 -4
View File
@@ -7,18 +7,19 @@ from sverchok.data_structure import updateNode
class SvIfcGenerateGuid(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCore):
bl_idname = 'SvIfcGenerateGuid'
bl_label = 'IFC Generate Guid'
bl_idname = "SvIfcGenerateGuid"
bl_label = "IFC Generate Guid"
def sv_init(self, context):
self.outputs.new('SvStringsSocket', 'guid')
self.outputs.new("SvStringsSocket", "guid")
def process(self):
self.outputs['guid'].sv_set([[ifcopenshell.guid.new()]])
self.outputs["guid"].sv_set([[ifcopenshell.guid.new()]])
def register():
bpy.utils.register_class(SvIfcGenerateGuid)
def unregister():
bpy.utils.unregister_class(SvIfcGenerateGuid)