armory/blender/arm/logicnode/variable_int.py

17 lines
422 B
Python
Raw Normal View History

2017-04-03 22:29:46 +02:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class IntNode(Node, ArmLogicTreeNode):
'''Int node'''
bl_idname = 'IntNodeType'
bl_label = 'Int'
bl_icon = 'CURVE_PATH'
def init(self, context):
self.inputs.new('NodeSocketInt', "Value")
self.outputs.new('NodeSocketInt', "Int")
add_node(IntNode, category='Variable')