forked from LeenkxTeam/LNXSDK
17 lines
501 B
Python
17 lines
501 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
|
|
class BranchNode(LnxLogicTreeNode):
|
|
"""Activates its `true` or `false` output, according
|
|
to the state of the plugged-in boolean."""
|
|
bl_idname = 'LNBranchNode'
|
|
bl_label = 'Branch'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxBoolSocket', 'Bool')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'True')
|
|
self.add_output('LnxNodeSocketAction', 'False')
|