Files
LNXSDK/leenkx/blender/lnx/logicnode/animation/LN_set_tilesheet_flip.py

22 lines
769 B
Python

from lnx.logicnode.lnx_nodes import *
class SetTilesheetFlipNode(LnxLogicTreeNode):
"""Set the flip state of the tilesheet for UV-based sprite flipping.
This is useful for billboarded sprites where mesh scaling cannot be used.
@input Flip X: Flip the sprite horizontally.
@input Flip Y: Flip the sprite vertically.
"""
bl_idname = 'LNSetTilesheetFlipNode'
bl_label = 'Set Tilesheet Flip'
lnx_version = 1
lnx_section = 'tilesheet'
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxNodeSocketObject', 'Object')
self.add_input('LnxBoolSocket', 'Flip X')
self.add_input('LnxBoolSocket', 'Flip Y')
self.add_output('LnxNodeSocketAction', 'Out')