LNXSDK/leenkx/blender/lnx/logicnode/animation/LN_set_action_frame.py
2025-01-22 16:18:30 +01:00

16 lines
564 B
Python

from lnx.logicnode.lnx_nodes import *
class SetActionFrameNode(LnxLogicTreeNode):
"""Sets the current action frame for the given object."""
bl_idname = 'LNSetActionFrameNode'
bl_label = 'Set Action Frame'
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('LnxIntSocket', 'Frame')
self.add_output('LnxNodeSocketAction', 'Out')