forked from LeenkxTeam/LNXSDK
13 lines
374 B
Python
13 lines
374 B
Python
|
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')
|