13 lines
386 B
Python
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class ArrayCountNode(LnxLogicTreeNode):
"""Returns an array with the item counts of the given array."""
bl_idname = 'LNArrayCountNode'
bl_label = 'Array Count'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketArray', 'Array')
self.add_output('LnxNodeSocketArray', 'Count')