from arm.logicnode.arm_nodes import *

class SeparateColorNode(ArmLogicTreeNode):
    """Splits the given color into RGB values."""
    bl_idname = 'LNSeparateColorNode'
    bl_label = 'Separate RGB'
    arm_section = 'color'
    arm_version = 1

    def init(self, context):
        super(SeparateColorNode, self).init(context)
        self.add_input('NodeSocketColor', 'Color', default_value=[1.0, 1.0, 1.0, 1.0])
        self.add_output('NodeSocketFloat', 'R')
        self.add_output('NodeSocketFloat', 'G')
        self.add_output('NodeSocketFloat', 'B')
