13 lines
365 B
Python
13 lines
365 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class ArrayLengthNode(ArmLogicTreeNode):
|
|
"""Array length node"""
|
|
bl_idname = 'LNArrayLengthNode'
|
|
bl_label = 'Array Length'
|
|
|
|
def init(self, context):
|
|
self.add_input('ArmNodeSocketArray', 'Array')
|
|
self.add_output('NodeSocketInt', 'Length')
|
|
|
|
add_node(ArrayLengthNode, category=MODULE_AS_CATEGORY)
|