16 lines
629 B
Python
16 lines
629 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class VectorClampToSizeNode(ArmLogicTreeNode):
|
|
"""Vector clamp to size node"""
|
|
bl_idname = 'LNVectorClampToSizeNode'
|
|
bl_label = 'Vector Clamp To Size'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(VectorClampToSizeNode, self).init(context)
|
|
self.add_input('NodeSocketVector', 'Vector In', default_value=[0.0, 0.0, 0.0])
|
|
self.add_input('NodeSocketFloat', 'Min')
|
|
self.add_input('NodeSocketFloat', 'Max')
|
|
self.add_output('NodeSocketVector', 'Vector Out')
|
|
|
|
add_node(VectorClampToSizeNode, category=PKG_AS_CATEGORY, section='vector')
|