armory/blender/arm/logicnode/string/LN_parse_float.py
2020-10-05 14:55:56 -03:00

15 lines
476 B
Python

from arm.logicnode.arm_nodes import *
class ParseFloatNode(ArmLogicTreeNode):
"""Returns the floats that are in the given string."""
bl_idname = 'LNParseFloatNode'
bl_label = 'Parse Float'
arm_version = 1
def init(self, context):
super(ParseFloatNode, self).init(context)
self.add_output('NodeSocketFloat', 'Float')
self.add_input('NodeSocketString', 'String')
add_node(ParseFloatNode, category=PKG_AS_CATEGORY, section='parse')