13 lines
374 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class IntFromBooleanNode(LnxLogicTreeNode):
"""Returns an int depending on the respective boolean state."""
bl_idname = 'LNIntFromBooleanNode'
bl_label = 'Boolean to Int'
lnx_version = 1
def lnx_init(self, context):
self.inputs.new('LnxBoolSocket', 'Bool')
self.outputs.new('LnxIntSocket', 'Int')