2017-04-04 23:11:31 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2018-10-30 11:16:56 +01:00
|
|
|
class GetHaxePropertyNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Get haxe property node'''
|
|
|
|
bl_idname = 'LNGetHaxePropertyNode'
|
|
|
|
bl_label = 'Get Haxe Property'
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-04-08 00:34:45 +02:00
|
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
|
|
self.inputs.new('NodeSocketString', 'Property')
|
|
|
|
self.outputs.new('NodeSocketShader', 'Value')
|
2017-04-04 23:11:31 +02:00
|
|
|
|
2018-10-30 11:16:56 +01:00
|
|
|
add_node(GetHaxePropertyNode, category='Native')
|