armory/blender/arm/logicnode/value_get_location.py
2017-04-14 20:38:50 +02:00

17 lines
464 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class GetLocationNode(Node, ArmLogicTreeNode):
'''Get location node'''
bl_idname = 'LNGetLocationNode'
bl_label = 'Get Location'
bl_icon = 'GAME'
def init(self, context):
self.inputs.new('ArmNodeSocketObject', 'Object')
self.outputs.new('NodeSocketVector', 'Location')
add_node(GetLocationNode, category='Value')