forked from LeenkxTeam/LNXSDK
Repe [T3DU] Update - 31f26d171bba0355ce2a77031e3aad4c64dbc7e9
This commit is contained in:
14
leenkx/blender/lnx/logicnode/string/LN_format_number.py
Normal file
14
leenkx/blender/lnx/logicnode/string/LN_format_number.py
Normal file
@ -0,0 +1,14 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class FormatNumberNode(LnxLogicTreeNode):
|
||||
bl_idname = 'LNFormatNumberNode'
|
||||
bl_label = 'Format Number'
|
||||
lnx_section = 'util'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxFloatSocket', 'Number', default_value=0.0)
|
||||
self.add_input('LnxStringSocket', 'Thousands Sep', default_value=".")
|
||||
self.add_input('LnxStringSocket', 'Decimal Sep', default_value=",")
|
||||
self.add_input('LnxBoolSocket', 'Include Symbol $', default_value=False)
|
||||
self.add_output('LnxStringSocket', 'Result')
|
||||
Reference in New Issue
Block a user