armory/blender/arm/logicnode/canvas/LN_canvas_get_rotation.py
2020-09-09 00:28:41 +02:00

15 lines
505 B
Python

from arm.logicnode.arm_nodes import *
class CanvasGetRotationNode(ArmLogicTreeNode):
"""Get canvas element rotation"""
bl_idname = 'LNCanvasGetRotationNode'
bl_label = 'Canvas Get Rotation'
def init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'Element')
self.add_output('ArmNodeSocketAction', 'Out')
self.add_output('NodeSocketFloat', 'Rad')
add_node(CanvasGetRotationNode, category=MODULE_AS_CATEGORY)