forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
18
leenkx/blender/lnx/logicnode/math/LN_key_interpolate.py
Normal file
18
leenkx/blender/lnx/logicnode/math/LN_key_interpolate.py
Normal file
@ -0,0 +1,18 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class KeyInterpolateNode(LnxLogicTreeNode):
|
||||
"""Linearly interpolate to 1.0 if input is true and interpolate to 0.0 if input is false.
|
||||
@input Key State: Interpolate to 1.0 if true and 0.0 if false.
|
||||
@input Init: Initial value in the range 0.0 to 1.0.
|
||||
@input Rate: Rate of interpolation.
|
||||
"""
|
||||
bl_idname = 'LNKeyInterpolateNode'
|
||||
bl_label = 'Key Interpolate Node'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxBoolSocket', 'Key State')
|
||||
self.add_input('LnxFloatSocket', 'Init', default_value=0.0)
|
||||
self.add_input('LnxFloatSocket', 'Rate')
|
||||
|
||||
self.add_output('LnxFloatSocket', 'Result')
|
Reference in New Issue
Block a user