forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
14
leenkx/blender/lnx/logicnode/random/LN_random_float.py
Normal file
14
leenkx/blender/lnx/logicnode/random/LN_random_float.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
|
||||
class RandomFloatNode(LnxLogicTreeNode):
|
||||
"""Generates a random float."""
|
||||
bl_idname = 'LNRandomFloatNode'
|
||||
bl_label = 'Random Float'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxFloatSocket', 'Min')
|
||||
self.add_input('LnxFloatSocket', 'Max', default_value=1.0)
|
||||
# self.add_input('LnxIntSocket', 'Seed')
|
||||
self.add_output('LnxFloatSocket', 'Float')
|
Reference in New Issue
Block a user