2017-04-04 23:11:31 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class ArraySetNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Sets the value of the given array at the given index."""
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNArraySetNode'
|
|
|
|
bl_label = 'Array Set'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2017-04-04 23:11:31 +02:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(ArraySetNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
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')
|