Files
LNXSDK/leenkx/blender/lnx/logicnode/string/LN_format_time.py

13 lines
424 B
Python

from lnx.logicnode.lnx_nodes import *
class FormatTimeNode(LnxLogicTreeNode):
bl_idname = 'LNFormatTimeNode'
bl_label = 'Format Time'
lnx_section = 'util'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxFloatSocket', 'Time', default_value=0.0)
self.add_input('LnxStringSocket', 'Format', default_value="HH:MM:SS:MS")
self.add_output('LnxStringSocket', 'Result')