LNXSDK/leenkx/blender/lnx/logicnode/math/LN_separate_xyz.py

16 lines
478 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class SeparateVectorNode(LnxLogicTreeNode):
"""Splits the given vector into X, Y and Z."""
bl_idname = 'LNSeparateVectorNode'
bl_label = 'Separate XYZ'
lnx_section = 'vector'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxVectorSocket', 'Vector')
self.add_output('LnxFloatSocket', 'X')
self.add_output('LnxFloatSocket', 'Y')
self.add_output('LnxFloatSocket', 'Z')