15 lines
372 B
Python
15 lines
372 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class TimeNode(Node, ArmLogicTreeNode):
|
|
'''Time node'''
|
|
bl_idname = 'TimeNodeType'
|
|
bl_label = 'Time'
|
|
bl_icon = 'TIME'
|
|
|
|
def init(self, context):
|
|
self.outputs.new('NodeSocketFloat', "Value")
|
|
|
|
add_node(TimeNode, category='Value')
|