forked from LeenkxTeam/LNXSDK
		
	
		
			
	
	
		
			18 lines
		
	
	
		
			624 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			624 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| 
								 | 
							
								from lnx.logicnode.lnx_nodes import *
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								@deprecated('Set Object Material Slot')
							 | 
						||
| 
								 | 
							
								class SetMaterialNode(LnxLogicTreeNode):
							 | 
						||
| 
								 | 
							
								    """Sets the material of the given object."""
							 | 
						||
| 
								 | 
							
								    bl_idname = 'LNSetMaterialNode'
							 | 
						||
| 
								 | 
							
								    bl_label = 'Set Object Material'
							 | 
						||
| 
								 | 
							
								    bl_description = "Please use the \"Set Object Material Slot\" node instead"
							 | 
						||
| 
								 | 
							
								    lnx_category = 'Material'
							 | 
						||
| 
								 | 
							
								    lnx_version = 2
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    def lnx_init(self, context):
							 | 
						||
| 
								 | 
							
								        self.add_input('LnxNodeSocketAction', 'In')
							 | 
						||
| 
								 | 
							
								        self.add_input('LnxNodeSocketObject', 'Object')
							 | 
						||
| 
								 | 
							
								        self.add_input('LnxDynamicSocket', 'Material')
							 | 
						||
| 
								 | 
							
								        self.add_output('LnxNodeSocketAction', 'Out')
							 |