16 lines
463 B
Python
16 lines
463 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class ParseFloatNode(Node, ArmLogicTreeNode):
|
|
'''Parse float node'''
|
|
bl_idname = 'LNParseFloatNode'
|
|
bl_label = 'Parse float'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.outputs.new('NodeSocketFloat', 'Float')
|
|
self.inputs.new('NodeSocketString', 'String')
|
|
|
|
add_node(ParseFloatNode, category=MODULE_AS_CATEGORY)
|