armory/blender/arm/logicnode/canvas_get_position.py
2020-08-07 14:00:46 -03:00

17 lines
497 B
Python

import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class CanvasGetPositionNode(Node, ArmLogicTreeNode):
'''Get canvas radio and combo value'''
bl_idname = 'LNCanvasGetPositionNode'
bl_label = 'Canvas Get Position'
bl_icon = 'NONE'
def init(self, context):
self.inputs.new('NodeSocketString', 'Element')
self.outputs.new('NodeSocketInt', 'Value')
add_node(CanvasGetPositionNode, category='Canvas')