armory/blender/arm/logicnode/array_length.py
2018-06-12 23:16:28 +02:00

17 lines
457 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class ArrayLengthNode(Node, ArmLogicTreeNode):
'''Array length node'''
bl_idname = 'LNArrayLengthNode'
bl_label = 'Array Length'
bl_icon = 'GAME'
def init(self, context):
self.inputs.new('ArmNodeSocketArray', 'Array')
self.outputs.new('NodeSocketInt', 'Length')
add_node(ArrayLengthNode, category='Array')