16 lines
530 B
Python
16 lines
530 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class CanvasSetPBNode(ArmLogicTreeNode):
|
|
"""Set canvas progress bar"""
|
|
bl_idname = 'LNCanvasSetPBNode'
|
|
bl_label = 'Canvas Set Progress Bar'
|
|
|
|
def init(self, context):
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('NodeSocketString', 'Element')
|
|
self.add_input('NodeSocketInt', 'At')
|
|
self.add_input('NodeSocketInt', 'Max')
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
|
|
add_node(CanvasSetPBNode, category=MODULE_AS_CATEGORY)
|