20 lines
		
	
	
		
			680 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			680 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from lnx.logicnode.lnx_nodes import *
 | 
						|
 | 
						|
class ResolutionSetNode(LnxLogicTreeNode):
 | 
						|
    """Set the resolution post-processing settings.
 | 
						|
    Filter 0: Lineal 1: Closest
 | 
						|
    """
 | 
						|
    bl_idname = 'LNResolutionSetNode'
 | 
						|
    bl_label = 'Set Resolution Settings'
 | 
						|
    lnx_version = 1
 | 
						|
 | 
						|
    def lnx_init(self, context):
 | 
						|
        self.add_input('LnxNodeSocketAction', 'In')
 | 
						|
        self.add_input('LnxIntSocket', 'Size', default_value=720)
 | 
						|
        self.add_input('LnxIntSocket', 'Filter', default_value=0)
 | 
						|
 | 
						|
        self.add_output('LnxNodeSocketAction', 'Out')
 | 
						|
 | 
						|
    def draw_buttons(self, context, layout):
 | 
						|
        layout.label(text="Type 0: Lineal")
 | 
						|
        layout.label(text="Type 1: Closest") |