forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
17
leenkx/blender/lnx/logicnode/math/LN_clamp.py
Normal file
17
leenkx/blender/lnx/logicnode/math/LN_clamp.py
Normal file
@ -0,0 +1,17 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class ClampNode(LnxLogicTreeNode):
|
||||
"""Keeps the value inside the given bound.
|
||||
|
||||
@seeNode Map Range
|
||||
"""
|
||||
bl_idname = 'LNClampNode'
|
||||
bl_label = 'Clamp'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxFloatSocket', 'Value')
|
||||
self.add_input('LnxFloatSocket', 'Min')
|
||||
self.add_input('LnxFloatSocket', 'Max')
|
||||
|
||||
self.add_output('LnxFloatSocket', 'Result')
|
Reference in New Issue
Block a user