2017-04-04 23:11:31 +02:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class ColorNode(ArmLogicTreeNode):
|
2020-09-08 23:14:51 +02:00
|
|
|
"""Color node"""
|
2017-04-04 23:11:31 +02:00
|
|
|
bl_idname = 'LNColorNode'
|
|
|
|
bl_label = 'Color'
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2017-04-04 23:11:31 +02:00
|
|
|
def init(self, context):
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('NodeSocketColor', 'Color', default_value=[0.8, 0.8, 0.8, 1.0])
|
2020-09-08 22:08:29 +02:00
|
|
|
self.add_output('NodeSocketColor', 'Color', is_var=True)
|
2017-04-04 23:11:31 +02:00
|
|
|
|
2020-09-08 17:03:24 +02:00
|
|
|
add_node(ColorNode, category=MODULE_AS_CATEGORY)
|