17 lines
453 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class IsTrueNode(LnxLogicTreeNode):
"""Passes through its activation only if the plugged-in boolean
equals `true`.
@seeNode Is False"""
bl_idname = 'LNIsTrueNode'
bl_label = 'Is True'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxBoolSocket', 'Bool')
self.add_output('LnxNodeSocketAction', 'Out')