armory/blender/arm/logicnode/miscellaneous/LN_time.py
2020-09-23 17:12:25 -03:00

15 lines
427 B
Python

from arm.logicnode.arm_nodes import *
class TimeNode(ArmLogicTreeNode):
"""Use to get the execution time and the delta time."""
bl_idname = 'LNTimeNode'
bl_label = 'Time'
arm_version = 1
def init(self, context):
super(TimeNode, self).init(context)
self.add_output('NodeSocketFloat', 'Time')
self.add_output('NodeSocketFloat', 'Delta')
add_node(TimeNode, category=PKG_AS_CATEGORY)