forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
@ -0,0 +1,13 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class GetMaterialsNode(LnxLogicTreeNode):
|
||||
"""Returns the materials of the given object."""
|
||||
bl_idname = 'LNGetMaterialsNode'
|
||||
bl_label = 'Get Object Materials'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
|
||||
self.add_output('LnxNodeSocketArray', 'Materials')
|
||||
self.add_output('LnxIntSocket', 'Length')
|
Reference in New Issue
Block a user