LNXSDK/leenkx/blender/lnx/logicnode/renderpath/LN_set_ssaa_quality.py

24 lines
687 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class RpSuperSampleNode(LnxLogicTreeNode):
"""Sets the supersampling quality."""
bl_idname = 'LNRpSuperSampleNode'
bl_label = 'Set SSAA Quality'
lnx_version = 1
property0: HaxeEnumProperty(
'property0',
items = [('1', '1', '1'),
('1.5', '1.5', '1.5'),
('2', '2', '2'),
('4', '4', '4')
],
name='', default='1')
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_output('LnxNodeSocketAction', 'Out')
def draw_buttons(self, context, layout):
layout.prop(self, 'property0')