armory/blender/arm/logicnode/canvas_get_position.py

17 lines
497 B
Python
Raw Normal View History

2019-09-29 15:37:18 +02:00
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'
2020-08-07 19:00:46 +02:00
bl_icon = 'NONE'
2019-09-29 15:37:18 +02:00
def init(self, context):
self.inputs.new('NodeSocketString', 'Element')
self.outputs.new('NodeSocketInt', 'Value')
add_node(CanvasGetPositionNode, category='Canvas')