armory/blender/arm/logicnode/transform/LN_set_object_location.py
2020-10-05 14:55:56 -03:00

17 lines
593 B
Python

from arm.logicnode.arm_nodes import *
class SetLocationNode(ArmLogicTreeNode):
"""Sets the location of the given object."""
bl_idname = 'LNSetLocationNode'
bl_label = 'Set Object Location'
arm_version = 1
def init(self, context):
super(SetLocationNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmNodeSocketObject', 'Object')
self.add_input('NodeSocketVector', 'Location')
self.add_output('ArmNodeSocketAction', 'Out')
add_node(SetLocationNode, category=PKG_AS_CATEGORY, section='location')