2019-09-23 12:25:46 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class CanvasSetScaleNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Set canvas element scale"""
|
2019-09-23 12:25:46 +02:00
|
|
|
bl_idname = 'LNCanvasSetScaleNode'
|
|
|
|
bl_label = 'Canvas Set Scale'
|
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('NodeSocketString', 'Element')
|
|
|
|
self.add_input('NodeSocketInt', 'Height')
|
|
|
|
self.add_input('NodeSocketInt', 'Width')
|
|
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
2019-09-23 12:25:46 +02:00
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(CanvasSetScaleNode, category=MODULE_AS_CATEGORY)
|