armory/blender/arm/logicnode/transform/LN_get_object_location.py
2020-11-17 12:01:15 -03:00

15 lines
477 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_section = 'location'
arm_version = 1
def init(self, context):
super(GetLocationNode, self).init(context)
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('NodeSocketVector', 'Location')