15 lines
503 B
Python
15 lines
503 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class ArraySetNode(ArmLogicTreeNode):
|
|
"""Array set node"""
|
|
bl_idname = 'LNArraySetNode'
|
|
bl_label = 'Array Set'
|
|
|
|
def init(self, context):
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('ArmNodeSocketArray', 'Array')
|
|
self.add_input('NodeSocketInt', 'Index')
|
|
self.add_input('NodeSocketShader', 'Value')
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(ArraySetNode, category=PKG_AS_CATEGORY)
|