14 lines
520 B
Python
14 lines
520 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetLocationNode(ArmLogicTreeNode):
|
|
"""Returns the current location of the given object in world coordinates."""
|
|
bl_idname = 'LNGetLocationNode'
|
|
bl_label = 'Get Object Location'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(GetLocationNode, self).init(context)
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
self.add_output('NodeSocketVector', 'Location')
|
|
|
|
add_node(GetLocationNode, category=PKG_AS_CATEGORY, section='location')
|