2017-03-15 12:30:14 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
2017-03-06 02:29:03 +01:00
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class TimeNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Returns the application execution time and the delta time."""
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNTimeNode'
|
2020-10-26 15:20:50 +01:00
|
|
|
bl_label = 'Get Application Time'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2017-03-06 02:29:03 +01:00
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(TimeNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('NodeSocketFloat', 'Time')
|
|
|
|
self.add_output('NodeSocketFloat', 'Delta')
|