from lnx.logicnode.lnx_nodes import * class VectorNode(LnxLogicVariableNodeMixin, LnxLogicTreeNode): """Stores the given 3D vector as a variable.""" bl_idname = 'LNVectorNode' bl_label = 'Vector' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxFloatSocket', 'X') self.add_input('LnxFloatSocket', 'Y') self.add_input('LnxFloatSocket', 'Z') self.add_output('LnxVectorSocket', 'Vector', is_var=True) def synchronize_from_master(self, master_node: LnxLogicVariableNodeMixin): for i in range(len(self.inputs)): self.inputs[i].default_value_raw = master_node.inputs[i].get_default_value()