from lnx.logicnode.lnx_nodes import * class GetMaterialNode(LnxLogicTreeNode): """Returns the material of the given object.""" bl_idname = 'LNGetMaterialNode' bl_label = 'Get Object Material' lnx_version = 1 def lnx_init(self, context): self.add_input('LnxNodeSocketObject', 'Object') self.add_input('LnxIntSocket', 'Slot') self.add_output('LnxDynamicSocket', 'Material')