Files
LNXSDK/leenkx/blender/lnx/logicnode/postprocess/LN_set_ca_settings.py

23 lines
826 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class ChromaticAberrationSetNode(LnxLogicTreeNode):
"""Set the chromatic aberration post-processing settings.
Type: Simple 0 Spectral 1.
"""
2025-01-22 16:18:30 +01:00
bl_idname = 'LNChromaticAberrationSetNode'
bl_label = 'Set CA Settings'
2025-06-02 17:35:46 +00:00
lnx_version = 2
2025-01-22 16:18:30 +01:00
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxFloatSocket', 'Strength', default_value=2.0)
2025-06-02 17:34:59 +00:00
self.add_input('LnxIntSocket', 'Samples', default_value=32)
self.add_input('LnxIntSocket', 'Type', default_value=0)
2025-01-22 16:18:30 +01:00
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)