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

13 lines
474 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class GetRootMotionNode(LnxLogicTreeNode):
"""Gets root motion of an armature object"""
bl_idname = 'LNGetRootMotionNode'
bl_label = 'Get Root Motion'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxStringSocket', 'Bone')
self.add_output('LnxVectorSocket', 'Velocity')
self.add_output('LnxRotationSocket', 'Rotation')