from lnx.logicnode.lnx_nodes import * class ArrayLoopNode(LnxLogicTreeNode): """Loops through each item of the given array.""" bl_idname = 'LNArrayLoopNode' bl_label = 'Array Loop' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxNodeSocketArray', 'Array') self.add_output('LnxNodeSocketAction', 'Loop') self.add_output('LnxDynamicSocket', 'Value') self.add_output('LnxIntSocket', 'Index') self.add_output('LnxNodeSocketAction', 'Done')