Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9

This commit is contained in:
2026-09-04 10:46:13 -07:00
parent c915312901
commit 0460b9d587
482 changed files with 27797 additions and 3226 deletions

View File

@ -0,0 +1,42 @@
from lnx.logicnode.lnx_nodes import *
class AsyncLoopNode(LnxLogicTreeNode):
"""Resembles a for-loop (`for (i in from...to)`) that is executed at
once when this node is activated.
@seeNode While
@seeNode Loop Break
@input From: The value to start the loop from (inclusive)
@input To: The value to end the loop at (exclusive)
@output Loop: Active at every iteration of the loop
@output Index: The index for the current iteration
@output Done: Activated once when the looping is done
"""
bl_idname = 'LNAsyncLoopNode'
bl_label = 'Async Loop'
bl_description = 'Resembles a for-loop that is executed at once when this node is activated'
lnx_section = 'flow'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxIntSocket', 'From')
self.add_input('LnxIntSocket', 'To')
self.add_input('LnxIntSocket', 'Async Items')
self.add_output('LnxNodeSocketAction', 'Loop')
self.add_output('LnxIntSocket', 'Index')
self.add_output('LnxNodeSocketAction', 'Done')
def draw_label(self) -> str:
inp_from = self.inputs['From']
inp_to = self.inputs['To']
if inp_from.is_linked and inp_to.is_linked:
return self.bl_label
val_from = 'x' if inp_from.is_linked else inp_from.default_value_raw
val_to = 'y' if inp_to.is_linked else inp_to.default_value_raw
return f'{self.bl_label}: {val_from}...{val_to}'

View File

@ -16,7 +16,7 @@ class CallFunctionNode(LnxLogicTreeNode):
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxDynamicSocket', 'Trait/Any')
self.add_input('LnxDynamicSocket', 'Trait')
self.add_input('LnxStringSocket', 'Function')
self.add_output('LnxNodeSocketAction', 'Out')

View File

@ -22,6 +22,8 @@ class SetCameraRenderFilterNode(LnxLogicTreeNode):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Object')
self.add_input('LnxNodeSocketObject', 'Camera')
self.add_input('LnxBoolSocket', 'Children', default_value=True)
self.add_input('LnxBoolSocket', 'Recursive', default_value=False)
self.add_output('LnxNodeSocketAction', 'Out')