2017-04-04 23:11:31 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class GetPropertyNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Returns the value of the given object property.
|
2020-09-28 15:58:41 +02:00
|
|
|
|
|
|
|
@seeNode Set Object Property"""
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNGetPropertyNode'
|
2020-09-25 00:49:21 +02:00
|
|
|
bl_label = 'Get Object Property'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-10-27 19:44:37 +01:00
|
|
|
arm_section = 'props'
|
2017-04-04 23:11:31 +02:00
|
|
|
|
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(GetPropertyNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
|
|
self.add_input('NodeSocketString', 'Property')
|
2020-11-17 16:01:15 +01:00
|
|
|
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_output('NodeSocketShader', 'Value')
|
|
|
|
self.add_output('NodeSocketString', 'Property')
|