15 lines
477 B
Python
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')
|