20 lines
608 B
Python
20 lines
608 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
class BranchNode(ArmLogicTreeNode):
|
|
"""When activated, activates its "True" or "False" output, according
|
|
to the state of the plugged-in boolean."""
|
|
bl_idname = 'LNBranchNode'
|
|
bl_label = 'Branch'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(BranchNode, self).init(context)
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('NodeSocketBool', 'Bool')
|
|
self.add_output('ArmNodeSocketAction', 'True')
|
|
self.add_output('ArmNodeSocketAction', 'False')
|
|
|
|
|
|
add_node(BranchNode, category=PKG_AS_CATEGORY)
|