armory/blender/arm/logicnode/event_on_init.py

16 lines
389 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 OnInitNode(Node, ArmLogicTreeNode):
'''On init node'''
bl_idname = 'OnInitNodeType'
bl_label = 'On Init'
bl_icon = 'CURVE_PATH'
def init(self, context):
self.outputs.new('NodeSocketShader', 'Out')
add_node(OnInitNode, category='Event')