LNXSDK/leenkx/blender/lnx/logicnode/animation/LN_set_action_time.py

16 lines
561 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SetActionTimeNode(LnxLogicTreeNode):
"""Sets the current action time for the given object."""
bl_idname = 'LNSetActionTimeNode'
bl_label = 'Set Action Time'
bl_width_default = 200
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Object')
self.add_input('LnxStringSocket', 'Action ID')
self.add_input('LnxFloatSocket', 'Time')
self.add_output('LnxNodeSocketAction', 'Out')