2017-04-16 14:46:35 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class ArrayShiftNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Array shift node'''
|
|
|
|
bl_idname = 'LNArrayShiftNode'
|
|
|
|
bl_label = 'Array Shift'
|
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2018-06-12 23:16:28 +02:00
|
|
|
self.inputs.new('ArmNodeSocketArray', 'Array')
|
2017-04-16 14:46:35 +02:00
|
|
|
self.outputs.new('NodeSocketShader', 'Value')
|
|
|
|
|
2017-11-02 23:28:21 +01:00
|
|
|
add_node(ArrayShiftNode, category='Array')
|