23 lines
826 B
Python
23 lines
826 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class ChromaticAberrationSetNode(LnxLogicTreeNode):
|
|
"""Set the chromatic aberration post-processing settings.
|
|
Type: Simple 0 Spectral 1.
|
|
"""
|
|
bl_idname = 'LNChromaticAberrationSetNode'
|
|
bl_label = 'Set CA Settings'
|
|
lnx_version = 2
|
|
|
|
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) |