from lnx.logicnode.lnx_nodes import * class CanvasSetVisibleNode(LnxLogicTreeNode): """Sets whether the given UI element is visible.""" bl_idname = 'LNCanvasSetVisibleNode' bl_label = 'Set Canvas Visible' lnx_section = 'elements_general' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxStringSocket', 'Element') self.add_input('LnxBoolSocket', 'Visible') self.add_output('LnxNodeSocketAction', 'Out')