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

14 lines
484 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
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')