18 lines
604 B
Python
18 lines
604 B
Python
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')
|