LNXSDK/leenkx/blender/lnx/logicnode/array/LN_array_loop_node.py

18 lines
568 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
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')