2017-11-27 09:30:06 +01:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class GroupNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Group node'''
|
|
|
|
bl_idname = 'LNGroupNode'
|
|
|
|
bl_label = 'Group'
|
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
property0 = StringProperty(name='', default='')
|
|
|
|
|
|
|
|
def init(self, context):
|
2018-06-12 23:16:28 +02:00
|
|
|
self.outputs.new('ArmNodeSocketArray', 'Array')
|
2017-11-27 09:30:06 +01:00
|
|
|
|
|
|
|
def draw_buttons(self, context, layout):
|
|
|
|
layout.prop_search(self, 'property0', bpy.data, 'groups', icon='NONE', text='')
|
|
|
|
|
|
|
|
add_node(GroupNode, category='Variable')
|