armory/blender/arm/logicnode/transform/LN_get_object_location.py
2020-09-28 15:58:41 +02:00

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