from arm.logicnode.arm_nodes import *

class SetScaleNode(ArmLogicTreeNode):
    """Sets the scale of the given object."""
    bl_idname = 'LNSetScaleNode'
    bl_label = 'Set Object Scale'
    arm_section = 'scale'
    arm_version = 1

    def init(self, context):
        super(SetScaleNode, self).init(context)
        self.add_input('ArmNodeSocketAction', 'In')
        self.add_input('ArmNodeSocketObject', 'Object')
        self.add_input('NodeSocketVector', 'Scale', default_value=[1.0, 1.0, 1.0])

        self.add_output('ArmNodeSocketAction', 'Out')
