armory/blender/arm/logicnode/array/LN_array_remove_index.py
2020-09-09 20:27:54 +02:00

16 lines
576 B
Python

from arm.logicnode.arm_nodes import *
class ArrayRemoveIndexNode(ArmLogicTreeNode):
"""Removes an element from an array given by its index."""
bl_idname = 'LNArrayRemoveNode'
bl_label = 'Array Remove By Index'
def init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketArray', 'Array')
self.add_input('NodeSocketInt', 'Index')
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketShader', 'Value')
add_node(ArrayRemoveIndexNode, category=MODULE_AS_CATEGORY)