armory/blender/arm/logicnode/action_print.py

18 lines
484 B
Python
Raw Normal View History

2017-04-03 22:29:46 +02:00
import bpy
from bpy.props import *
from bpy.types import Node, NodeSocket
from arm.logicnode.arm_nodes import *
class PrintNode(Node, ArmLogicTreeNode):
'''Print node'''
2017-04-04 23:11:31 +02:00
bl_idname = 'LNPrintNode'
2017-04-03 22:29:46 +02:00
bl_label = 'Print'
2018-12-18 23:48:38 +01:00
bl_icon = 'QUESTION'
2017-04-03 22:29:46 +02:00
def init(self, context):
2017-04-08 20:05:35 +02:00
self.inputs.new('ArmNodeSocketAction', 'In')
2019-05-10 12:55:41 +02:00
self.inputs.new('NodeSocketString', 'Value')
2017-04-08 20:05:35 +02:00
self.outputs.new('ArmNodeSocketAction', 'Out')
2017-04-03 22:29:46 +02:00
2017-04-08 20:05:35 +02:00
add_node(PrintNode, category='Action')