forked from LeenkxTeam/LNXSDK
14 lines
484 B
Python
14 lines
484 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class PlayAnimationTreeNode(LnxLogicTreeNode):
|
|
"""Plays a given animation tree."""
|
|
bl_idname = 'LNPlayAnimationTreeNode'
|
|
bl_label = 'Play Animation Tree'
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxNodeSocketObject', 'Object')
|
|
self.add_input('LnxNodeSocketAnimTree', 'Action Tree')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out') |