armory/blender/arm/logicnode/logic/LN_output_to_boolean.py

15 lines
478 B
Python
Raw Normal View History

2018-02-20 18:46:16 +01:00
from arm.logicnode.arm_nodes import *
class ToBoolNode(ArmLogicTreeNode):
2020-09-28 15:58:41 +02:00
"""Converts a signal to a boolean value. If the input signal is
active, the boolean is `true`; if not, the boolean is `false`."""
2018-02-20 18:46:16 +01:00
bl_idname = 'LNToBoolNode'
2020-11-17 16:01:15 +01:00
bl_label = 'Output to Boolean'
arm_version = 1
2018-02-20 18:46:16 +01:00
def init(self, context):
super(ToBoolNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_input('ArmNodeSocketAction', 'In')
2020-11-17 16:01:15 +01:00
2020-09-08 21:49:02 +02:00
self.add_output('NodeSocketBool', 'Bool')