19 lines
540 B
Python
19 lines
540 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
|
||
|
class MapLoopNode(LnxLogicTreeNode):
|
||
|
"""Map Loop"""
|
||
|
bl_idname = 'LNMapLoopNode'
|
||
|
bl_label = 'Map Loop'
|
||
|
lnx_version = 1
|
||
|
|
||
|
|
||
|
def init(self, context):
|
||
|
self.add_input('LnxNodeSocketAction', 'In')
|
||
|
self.add_input('LnxDynamicSocket', 'Map')
|
||
|
|
||
|
self.add_output('LnxNodeSocketAction', 'Loop')
|
||
|
self.add_output('LnxDynamicSocket', 'Key')
|
||
|
self.add_output('LnxDynamicSocket', 'Value')
|
||
|
self.add_output('LnxNodeSocketAction', 'Done')
|