armory/blender/arm/logicnode/array_length.py

17 lines
455 B
Python
Raw Normal View History

2017-11-02 23:32:36 +01:00
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('NodeSocketShader', 'Array')
self.outputs.new('NodeSocketInt', 'Length')
2017-11-02 23:43:01 +01:00
add_node(ArrayLengthNode, category='Array')