| 
									
										
										
										
											2025-01-22 16:18:30 +01:00
										 |  |  | from lnx.logicnode.lnx_nodes import * | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class ChromaticAberrationGetNode(LnxLogicTreeNode): | 
					
						
							| 
									
										
										
										
											2025-06-02 17:25:33 +00:00
										 |  |  |     """Returns the chromatic aberration post-processing settings.
 | 
					
						
							|  |  |  |     Type: Simple 0 Spectral 1. | 
					
						
							|  |  |  |     """
 | 
					
						
							| 
									
										
										
										
											2025-01-22 16:18:30 +01:00
										 |  |  |     bl_idname = 'LNChromaticAberrationGetNode' | 
					
						
							|  |  |  |     bl_label = 'Get CA Settings' | 
					
						
							| 
									
										
										
										
											2025-06-02 17:25:33 +00:00
										 |  |  |     lnx_version = 2 | 
					
						
							| 
									
										
										
										
											2025-01-22 16:18:30 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def lnx_init(self, context): | 
					
						
							|  |  |  |         self.add_output('LnxFloatSocket', 'Strength') | 
					
						
							|  |  |  |         self.add_output('LnxFloatSocket', 'Samples') | 
					
						
							| 
									
										
										
										
											2025-06-02 17:25:33 +00:00
										 |  |  |         self.add_output('LnxIntSocket', 'Type') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     def get_replacement_node(self, node_tree: bpy.types.NodeTree): | 
					
						
							|  |  |  |         if self.lnx_version not in (0, 1): | 
					
						
							|  |  |  |             raise LookupError() | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         return NodeReplacement.Identity(self) |