LNXSDK/leenkx/blender/lnx/logicnode/material/LN_get_object_material.py
2025-01-22 16:18:30 +01:00

14 lines
419 B
Python

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')