2020-10-14 15:03:47 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class GetTilesheetStateNode(ArmLogicTreeNode):
|
|
|
|
"""Returns the information about the current tilesheet of the given object."""
|
|
|
|
bl_idname = 'LNGetTilesheetStateNode'
|
|
|
|
bl_label = 'Get Tilesheet State'
|
|
|
|
arm_version = 1
|
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
super(GetTilesheetStateNode, self).init(context)
|
|
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
2020-10-14 15:56:41 +02:00
|
|
|
self.add_output('NodeSocketString', 'Name')
|
2020-10-14 15:03:47 +02:00
|
|
|
self.add_output('NodeSocketInt', 'Frame')
|
|
|
|
self.add_output('NodeSocketBool', 'Is Paused')
|
|
|
|
|
|
|
|
add_node(GetTilesheetStateNode, category=PKG_AS_CATEGORY, section='tilesheet')
|