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

25 lines
695 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class RpMSAANode(LnxLogicTreeNode):
"""Sets the MSAA quality."""
bl_idname = 'LNRpMSAANode'
bl_label = 'Set MSAA Quality'
lnx_version = 1
property0: HaxeEnumProperty(
'property0',
items = [('1', '1', '1'),
('2', '2', '2'),
('4', '4', '4'),
('8', '8', '8'),
('16', '16', '16')
],
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')