LNXSDK/leenkx/blender/lnx/logicnode/postprocess/LN_get_bloom_settings.py

25 lines
803 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class BloomGetNode(LnxLogicTreeNode):
"""Return the current bloom post-processing settings. This node
requires `Leenkx Render Path > Renderer > Realtime postprocess`
to be enabled in order to work.
"""
bl_idname = 'LNBloomGetNode'
bl_label = 'Get Bloom Settings'
lnx_version = 2
def lnx_init(self, context):
self.add_output('LnxFloatSocket', 'Threshold')
self.add_output('LnxFloatSocket', 'Knee')
self.add_output('LnxFloatSocket', 'Strength')
self.add_output('LnxFloatSocket', 'Radius')
def get_replacement_node(self, node_tree: bpy.types.NodeTree):
return NodeReplacement(
'LNBloomGetNode', 1,
'LNBloomGetNode', 2,
{}, {0: 0, 1: 2, 2: 3}
)