2017-03-06 02:29:03 +01:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
2017-03-15 12:30:14 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
2017-03-06 02:29:03 +01:00
|
|
|
|
|
|
|
class TimeNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Time node'''
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNTimeNode'
|
2017-03-06 02:29:03 +01:00
|
|
|
bl_label = 'Time'
|
|
|
|
bl_icon = 'TIME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-03-21 03:06:38 +01:00
|
|
|
self.outputs.new('NodeSocketFloat', "Value")
|
2017-03-06 02:29:03 +01:00
|
|
|
|
|
|
|
add_node(TimeNode, category='Value')
|