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

18 lines
604 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SetTilesheetFrame(LnxLogicTreeNode):
"""Set the frame of the current tilesheet action.
@input Frame: Frame offset to set with 0 as the first frame of the active action.
"""
bl_idname = 'LNSetTilesheetFrameNode'
bl_label = 'Set Tilesheet Frame'
lnx_version = 1
lnx_section = 'tilesheet'
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Object')
self.add_input('LnxIntSocket', 'Frame')
self.add_output('LnxNodeSocketAction', 'Out')