forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			608 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			608 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from lnx.logicnode.lnx_nodes import *
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Class GetSystemName
							 | 
						||
| 
								 | 
							
								class GetSystemName(LnxLogicTreeNode):
							 | 
						||
| 
								 | 
							
								    """Returns the name of the current system."""
							 | 
						||
| 
								 | 
							
								    bl_idname = 'LNGetSystemName'
							 | 
						||
| 
								 | 
							
								    bl_label = 'Get System Name'
							 | 
						||
| 
								 | 
							
								    lnx_section = 'Native'
							 | 
						||
| 
								 | 
							
								    lnx_version = 1
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    def lnx_init(self, context):
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxStringSocket', 'System Name')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxBoolSocket', 'Windows')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxBoolSocket', 'Linux')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxBoolSocket', 'Mac')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxBoolSocket', 'HTML5')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxBoolSocket', 'Android')
							 |