2019-02-16 22:54:12 +01:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class CanvasGetSliderNode(ArmLogicTreeNode):
|
2019-02-16 22:54:12 +01:00
|
|
|
'''Set canvas text'''
|
|
|
|
bl_idname = 'LNCanvasGetSliderNode'
|
|
|
|
bl_label = 'Canvas Get Slider'
|
2020-08-07 19:00:46 +02:00
|
|
|
bl_icon = 'NONE'
|
2019-02-16 22:54:12 +01:00
|
|
|
|
|
|
|
def init(self, context):
|
|
|
|
self.inputs.new('NodeSocketString', 'Element')
|
|
|
|
self.outputs.new('NodeSocketFloat', 'Value')
|
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(CanvasGetSliderNode, category=MODULE_AS_CATEGORY)
|