17 lines
537 B
Python
17 lines
537 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
class ArraySliceNode(LnxLogicTreeNode):
|
||
|
"""Creates a shallow copy of the given array in the specified range.
|
||
|
|
||
|
@see [Haxe API](https://api.haxe.org/Array.html#slice)"""
|
||
|
bl_idname = 'LNArraySliceNode'
|
||
|
bl_label = 'Array Slice'
|
||
|
lnx_version = 1
|
||
|
|
||
|
def lnx_init(self, context):
|
||
|
self.add_input('LnxNodeSocketArray', 'Array')
|
||
|
self.add_input('LnxIntSocket', 'Index')
|
||
|
self.add_input('LnxIntSocket', 'End')
|
||
|
|
||
|
self.add_output('LnxNodeSocketArray', 'Array')
|