diff --git a/leenkx/blender/lnx/logicnode/postprocess/LN_set_ca_settings.py b/leenkx/blender/lnx/logicnode/postprocess/LN_set_ca_settings.py index 534fa7c..1ec6a7d 100644 --- a/leenkx/blender/lnx/logicnode/postprocess/LN_set_ca_settings.py +++ b/leenkx/blender/lnx/logicnode/postprocess/LN_set_ca_settings.py @@ -1,7 +1,9 @@ from lnx.logicnode.lnx_nodes import * class ChromaticAberrationSetNode(LnxLogicTreeNode): - """Set the chromatic aberration post-processing settings.""" + """Set the chromatic aberration post-processing settings. + Type: Simple 0 Spectral 1. + """ bl_idname = 'LNChromaticAberrationSetNode' bl_label = 'Set CA Settings' lnx_version = 1 @@ -9,6 +11,12 @@ class ChromaticAberrationSetNode(LnxLogicTreeNode): def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'In') self.add_input('LnxFloatSocket', 'Strength', default_value=2.0) - self.add_input('LnxIntSocket', 'Samples', default_value=32) + self.add_input('LnxIntSocket', 'Type', default_value=0) self.add_output('LnxNodeSocketAction', 'Out') + + 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