armory/blender/arm/logicnode/array/LN_array_get.py
Moritz Brückner 96aa0ee890 Use custom sockets for default data types
This allows to listen for socket updates for the live patch system
2021-07-10 21:46:44 +02:00

15 lines
458 B
Python

from arm.logicnode.arm_nodes import *
class ArrayGetNode(ArmLogicTreeNode):
"""Returns the value of the given array at the given index."""
bl_idname = 'LNArrayGetNode'
bl_label = 'Array Get'
arm_version = 1
def init(self, context):
super(ArrayGetNode, self).init(context)
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('ArmIntSocket', 'Index')
self.add_output('ArmDynamicSocket', 'Value')