mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
black ifcsverchok
This commit is contained in:
@@ -8,21 +8,21 @@ from sverchok.data_structure import updateNode
|
||||
|
||||
|
||||
class SvIfcGetAttribute(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper.SvIfcCore):
|
||||
bl_idname = 'SvIfcGetAttribute'
|
||||
bl_label = 'IFC Get Attribute'
|
||||
entity: StringProperty(name='entity', update=updateNode)
|
||||
attribute_name: StringProperty(name='attribute_name', update=updateNode)
|
||||
bl_idname = "SvIfcGetAttribute"
|
||||
bl_label = "IFC Get Attribute"
|
||||
entity: StringProperty(name="entity", update=updateNode)
|
||||
attribute_name: StringProperty(name="attribute_name", update=updateNode)
|
||||
|
||||
def sv_init(self, context):
|
||||
self.inputs.new('SvStringsSocket', 'entity').prop_name = 'entity'
|
||||
self.inputs.new('SvStringsSocket', 'attribute_name').prop_name = 'attribute_name'
|
||||
self.outputs.new('SvStringsSocket', 'value')
|
||||
self.inputs.new("SvStringsSocket", "entity").prop_name = "entity"
|
||||
self.inputs.new("SvStringsSocket", "attribute_name").prop_name = "attribute_name"
|
||||
self.outputs.new("SvStringsSocket", "value")
|
||||
|
||||
def process(self):
|
||||
self.sv_input_names = ['entity', 'attribute_name']
|
||||
self.sv_input_names = ["entity", "attribute_name"]
|
||||
self.value_out = []
|
||||
super().process()
|
||||
self.outputs['value'].sv_set(self.value_out)
|
||||
self.outputs["value"].sv_set(self.value_out)
|
||||
|
||||
def process_ifc(self, entity, attribute_name):
|
||||
try:
|
||||
@@ -37,5 +37,6 @@ class SvIfcGetAttribute(bpy.types.Node, SverchCustomTreeNode, ifcsverchok.helper
|
||||
def register():
|
||||
bpy.utils.register_class(SvIfcGetAttribute)
|
||||
|
||||
|
||||
def unregister():
|
||||
bpy.utils.unregister_class(SvIfcGetAttribute)
|
||||
|
||||
Reference in New Issue
Block a user