LNXSDK/leenkx/blender/lnx/logicnode/deprecated/LN_set_object_material.py

18 lines
624 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
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')