27 lines
No EOL
812 B
Python
27 lines
No EOL
812 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class RpMSAANode(Node, ArmLogicTreeNode):
|
|
'''Configure multi-sample anti-aliasing node'''
|
|
bl_idname = 'LNRpMSAANode'
|
|
bl_label = 'Rp MSAA'
|
|
bl_icon = 'CURVE_PATH'
|
|
property0: EnumProperty(
|
|
items = [('1', '1', '1'),
|
|
('2', '2', '2'),
|
|
('4', '4', '4'),
|
|
('8', '8', '8'),
|
|
('16', '16', '16')
|
|
],
|
|
name='', default='1')
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
def draw_buttons(self, context, layout):
|
|
layout.prop(self, 'property0')
|
|
|
|
add_node(RpMSAANode, category='Renderpath') |