From 385c683fe32f3b2a3626c8cab3d31ee39f87cf9f Mon Sep 17 00:00:00 2001 From: Onek8 Date: Mon, 2 Jun 2025 17:25:33 +0000 Subject: [PATCH] t3du - CA Updates --- .../lnx/logicnode/postprocess/LN_get_ca_settings.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/leenkx/blender/lnx/logicnode/postprocess/LN_get_ca_settings.py b/leenkx/blender/lnx/logicnode/postprocess/LN_get_ca_settings.py index f1d8c1f..51f0b08 100644 --- a/leenkx/blender/lnx/logicnode/postprocess/LN_get_ca_settings.py +++ b/leenkx/blender/lnx/logicnode/postprocess/LN_get_ca_settings.py @@ -1,11 +1,20 @@ from lnx.logicnode.lnx_nodes import * class ChromaticAberrationGetNode(LnxLogicTreeNode): - """Returns the chromatic aberration post-processing settings.""" + """Returns the chromatic aberration post-processing settings. + Type: Simple 0 Spectral 1. + """ bl_idname = 'LNChromaticAberrationGetNode' bl_label = 'Get CA Settings' - lnx_version = 1 + lnx_version = 2 def lnx_init(self, context): self.add_output('LnxFloatSocket', 'Strength') self.add_output('LnxFloatSocket', 'Samples') + self.add_output('LnxIntSocket', 'Type') + + def get_replacement_node(self, node_tree: bpy.types.NodeTree): + if self.lnx_version not in (0, 1): + raise LookupError() + + return NodeReplacement.Identity(self) \ No newline at end of file