14 lines
421 B
Python
14 lines
421 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetMeshNode(ArmLogicTreeNode):
|
|
"""Returns the mesh of the given object."""
|
|
bl_idname = 'LNGetMeshNode'
|
|
bl_label = 'Get Object Mesh'
|
|
arm_section = 'props'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(GetMeshNode, self).init(context)
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
|
|
self.add_output('NodeSocketShader', 'Mesh')
|