armory/blender/arm/logicnode/logic/LN_output_to_boolean.py
2020-11-17 12:01:15 -03:00

15 lines
478 B
Python

from arm.logicnode.arm_nodes import *
class ToBoolNode(ArmLogicTreeNode):
"""Converts a signal to a boolean value. If the input signal is
active, the boolean is `true`; if not, the boolean is `false`."""
bl_idname = 'LNToBoolNode'
bl_label = 'Output to Boolean'
arm_version = 1
def init(self, context):
super(ToBoolNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_output('NodeSocketBool', 'Bool')