armory/blender/arm/logicnode/miscellaneous/LN_get_application_time.py

13 lines
406 B
Python
Raw Normal View History

2017-03-15 12:30:14 +01:00
from arm.logicnode.arm_nodes import *
2017-03-06 02:29:03 +01: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'
arm_version = 1
2017-03-06 02:29:03 +01:00
def init(self, context):
super(TimeNode, self).init(context)
2020-09-08 21:49:02 +02:00
self.add_output('NodeSocketFloat', 'Time')
self.add_output('NodeSocketFloat', 'Delta')