import bpy, json

_ORIGINAL_NODE_DEF = json.loads("""
{
    "class": "MpfbEars",
    "inputs": {
        "Input_Socket_SkinColor": {
            "name": "SkinColor",
            "identifier": "Socket_0",
            "class": "NodeSocketColor",
            "value_type": "RGBA",
            "default_value": [
                0.807,
                0.565,
                0.4356,
                1.0
            ]
        },
        "Input_Socket_SpotColor": {
            "name": "SpotColor",
            "identifier": "Socket_1",
            "class": "NodeSocketColor",
            "value_type": "RGBA",
            "default_value": [
                0.0762,
                0.0137,
                0.003,
                1.0
            ]
        },
        "Input_Socket_VeinColor": {
            "name": "VeinColor",
            "identifier": "Socket_2",
            "class": "NodeSocketColor",
            "value_type": "RGBA",
            "default_value": [
                0.1413,
                0.1301,
                0.5029,
                1.0
            ]
        },
        "Input_Socket_Normal": {
            "name": "Normal",
            "identifier": "Socket_3",
            "class": "NodeSocketVector",
            "value_type": "VECTOR",
            "default_value": [
                0.0,
                0.0,
                0.0
            ]
        },
        "Input_Socket_Roughness": {
            "name": "Roughness",
            "identifier": "Socket_4",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.35,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_SSSWeight": {
            "name": "SSSWeight",
            "identifier": "Socket_5",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.1,
            "min_value": 0.0,
            "max_value": 10.0
        },
        "Input_Socket_SSSRadiusMultiplyer": {
            "name": "SSSRadiusMultiplyer",
            "identifier": "Socket_6",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.8,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_SSSRadiusX": {
            "name": "SSSRadiusX",
            "identifier": "Socket_8",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.0,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_SSSRadiusY": {
            "name": "SSSRadiusY",
            "identifier": "Socket_9",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.2,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_SSSRadiusZ": {
            "name": "SSSRadiusZ",
            "identifier": "Socket_10",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.1,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_SSSIor": {
            "name": "SSSIor",
            "identifier": "Socket_7",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.4,
            "min_value": 0.0,
            "max_value": 5.0
        },
        "Input_Socket_SSSAnisotropy": {
            "name": "SSSAnisotropy",
            "identifier": "Socket_35",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.0,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_SpotStrength": {
            "name": "SpotStrength",
            "identifier": "Socket_11",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.6,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_SpotScaleMultiplier": {
            "name": "SpotScaleMultiplier",
            "identifier": "Socket_12",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 21.0,
            "min_value": 0.1,
            "max_value": 10000.0
        },
        "Input_Socket_SpotDetail": {
            "name": "SpotDetail",
            "identifier": "Socket_13",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.0,
            "min_value": 0.0,
            "max_value": 15.0
        },
        "Input_Socket_SpotDistortion": {
            "name": "SpotDistortion",
            "identifier": "Socket_14",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.0,
            "min_value": -1000.0,
            "max_value": 1000.0
        },
        "Input_Socket_SpotRoughness": {
            "name": "SpotRoughness",
            "identifier": "Socket_15",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.0,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_SpotValley": {
            "name": "SpotValley",
            "identifier": "Socket_16",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.848,
            "min_value": 0.0,
            "max_value": 0.99
        },
        "Input_Socket_SpotPeak": {
            "name": "SpotPeak",
            "identifier": "Socket_17",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.916,
            "min_value": 0.01,
            "max_value": 1.0
        },
        "Input_Socket_UnevennessScaleMultiplier": {
            "name": "UnevennessScaleMultiplier",
            "identifier": "Socket_18",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 250.0,
            "min_value": -10000.0,
            "max_value": 10000.0
        },
        "Input_Socket_UnevennessBumpStrength": {
            "name": "UnevennessBumpStrength",
            "identifier": "Socket_19",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.1,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_UnevennessDetail": {
            "name": "UnevennessDetail",
            "identifier": "Socket_20",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 3.0,
            "min_value": 0.0,
            "max_value": 15.0
        },
        "Input_Socket_UnevennessDistortion": {
            "name": "UnevennessDistortion",
            "identifier": "Socket_21",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.5,
            "min_value": -1000.0,
            "max_value": 1000.0
        },
        "Input_Socket_UnevennessRoughness": {
            "name": "UnevennessRoughness",
            "identifier": "Socket_22",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.0,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_DermalScaleMultiplier": {
            "name": "DermalScaleMultiplier",
            "identifier": "Socket_23",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 150.0,
            "min_value": -10000.0,
            "max_value": 10000.0
        },
        "Input_Socket_DermalBumpStrength": {
            "name": "DermalBumpStrength",
            "identifier": "Socket_24",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.1,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_SmallVeinScaleMultiplier": {
            "name": "SmallVeinScaleMultiplier",
            "identifier": "Socket_25",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.1,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_LargeVeinScaleMultiplier": {
            "name": "LargeVeinScaleMultiplier",
            "identifier": "Socket_26",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.6,
            "min_value": 0.0,
            "max_value": 100.0
        },
        "Input_Socket_VeinStrength": {
            "name": "VeinStrength",
            "identifier": "Socket_27",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.1,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_ColorVariationStrength": {
            "name": "ColorVariationStrength",
            "identifier": "Socket_28",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.15,
            "min_value": 0.0,
            "max_value": 1.0
        },
        "Input_Socket_ColorVariationScaleMultiplier": {
            "name": "ColorVariationScaleMultiplier",
            "identifier": "Socket_29",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 30.0,
            "min_value": 0.0,
            "max_value": 1000.0
        },
        "Input_Socket_ColorVariationBrightness": {
            "name": "ColorVariationBrightness",
            "identifier": "Socket_30",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": -0.5,
            "min_value": -1.0,
            "max_value": 1.0
        },
        "Input_Socket_ColorVariationDetail": {
            "name": "ColorVariationDetail",
            "identifier": "Socket_31",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 1.0,
            "min_value": 0.0,
            "max_value": 15.0
        },
        "Input_Socket_ColorVariationDistortion": {
            "name": "ColorVariationDistortion",
            "identifier": "Socket_32",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.5,
            "min_value": -1000.0,
            "max_value": 1000.0
        },
        "Input_Socket_ColorVariationRoughness": {
            "name": "ColorVariationRoughness",
            "identifier": "Socket_33",
            "class": "NodeSocketFloat",
            "value_type": "VALUE",
            "default_value": 0.0,
            "min_value": 0.0,
            "max_value": 1.0
        }
    },
    "outputs": {
        "Output_Socket_BSDF": {
            "name": "BSDF",
            "identifier": "Socket_34",
            "class": "NodeSocketShader",
            "value_type": "SHADER",
            "default_value": null
        }
    },
    "attributes": {
        "color": {
            "name": "color",
            "class": "Color",
            "value": [
                0.4,
                0.4,
                0.5
            ]
        },
        "height": {
            "name": "height",
            "class": "float",
            "value": 100.0
        },
        "location": {
            "name": "location",
            "class": "Vector",
            "value": [
                704.827,
                635.8026
            ]
        },
        "use_custom_color": {
            "name": "use_custom_color",
            "class": "bool",
            "value": true
        },
        "width": {
            "name": "width",
            "class": "float",
            "value": 331.479
        }
    }
}""")

_ORIGINAL_TREE_DEF = json.loads("""
{
    "links": [
        {
            "from_node": "Group Input",
            "from_socket": "Normal",
            "to_node": "earsskingroup",
            "to_socket": "Normal"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSWeight",
            "to_node": "earsskingroup",
            "to_socket": "SSSWeight"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSRadiusMultiplyer",
            "to_node": "earsskingroup",
            "to_socket": "SSSRadiusMultiplyer"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSIor",
            "to_node": "earsskingroup",
            "to_socket": "SSSIor"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotColor",
            "to_node": "earsskingroup",
            "to_socket": "SpotColor"
        },
        {
            "from_node": "Group Input",
            "from_socket": "VeinColor",
            "to_node": "earsskingroup",
            "to_socket": "VeinColor"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotStrength",
            "to_node": "earsskingroup",
            "to_socket": "SpotStrength"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "SpotScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotDetail",
            "to_node": "earsskingroup",
            "to_socket": "SpotDetail"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotDistortion",
            "to_node": "earsskingroup",
            "to_socket": "SpotDistortion"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotRoughness",
            "to_node": "earsskingroup",
            "to_socket": "SpotRoughness"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotValley",
            "to_node": "earsskingroup",
            "to_socket": "SpotValley"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SpotPeak",
            "to_node": "earsskingroup",
            "to_socket": "SpotPeak"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSRadiusX",
            "to_node": "earsskingroup",
            "to_socket": "SSSRadiusX"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSRadiusY",
            "to_node": "earsskingroup",
            "to_socket": "SSSRadiusY"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSRadiusZ",
            "to_node": "earsskingroup",
            "to_socket": "SSSRadiusZ"
        },
        {
            "from_node": "Group Input",
            "from_socket": "Roughness",
            "to_node": "earsskingroup",
            "to_socket": "Roughness"
        },
        {
            "from_node": "Group Input",
            "from_socket": "UnevennessScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "UnevennessScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "UnevennessBumpStrength",
            "to_node": "earsskingroup",
            "to_socket": "UnevennessBumpStrength"
        },
        {
            "from_node": "Group Input",
            "from_socket": "UnevennessDetail",
            "to_node": "earsskingroup",
            "to_socket": "UnevennessDetail"
        },
        {
            "from_node": "Group Input",
            "from_socket": "UnevennessDistortion",
            "to_node": "earsskingroup",
            "to_socket": "UnevennessDistortion"
        },
        {
            "from_node": "Group Input",
            "from_socket": "UnevennessRoughness",
            "to_node": "earsskingroup",
            "to_socket": "UnevennessRoughness"
        },
        {
            "from_node": "Group Input",
            "from_socket": "DermalScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "DermalScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "DermalBumpStrength",
            "to_node": "earsskingroup",
            "to_socket": "DermalBumpStrength"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SkinColor",
            "to_node": "earsskingroup",
            "to_socket": "SkinColor"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SmallVeinScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "SmallVeinScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "LargeVeinScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "LargeVeinScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "VeinStrength",
            "to_node": "earsskingroup",
            "to_socket": "VeinStrength"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationStrength",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationStrength"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationScaleMultiplier",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationScaleMultiplier"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationBrightness",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationBrightness"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationDetail",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationDetail"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationDistortion",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationDistortion"
        },
        {
            "from_node": "Group Input",
            "from_socket": "ColorVariationRoughness",
            "to_node": "earsskingroup",
            "to_socket": "ColorVariationRoughness"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "Normal",
            "to_node": "Principled BSDF.001",
            "to_socket": "Normal"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "Color",
            "to_node": "Principled BSDF.001",
            "to_socket": "Base Color"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "SSSRadius",
            "to_node": "Principled BSDF.001",
            "to_socket": "Subsurface Radius"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "SSSWeight",
            "to_node": "Principled BSDF.001",
            "to_socket": "Subsurface Weight"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "SSSIor",
            "to_node": "Principled BSDF.001",
            "to_socket": "Subsurface IOR"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "Roughness",
            "to_node": "Principled BSDF.001",
            "to_socket": "Roughness"
        },
        {
            "from_node": "Principled BSDF.001",
            "from_socket": "BSDF",
            "to_node": "Group Output",
            "to_socket": "BSDF"
        },
        {
            "from_node": "earsskingroup",
            "from_socket": "SSSAnisotropy",
            "to_node": "Principled BSDF.001",
            "to_socket": "Subsurface Anisotropy"
        },
        {
            "from_node": "Group Input",
            "from_socket": "SSSAnisotropy",
            "to_node": "earsskingroup",
            "to_socket": "SSSAnisotropy"
        }
    ],
    "nodes": [
        {
            "attribute_values": {
                "location": [
                    233.8077,
                    683.8954
                ]
            },
            "class": "NodeGroupOutput",
            "input_socket_values": {},
            "label": "Group Output",
            "name": "Group Output",
            "output_socket_values": {}
        },
        {
            "attribute_values": {
                "location": [
                    -144.3404,
                    677.2473
                ]
            },
            "class": "ShaderNodeBsdfPrincipled",
            "input_socket_values": {
                "Base Color": [
                    0.8,
                    0.6037,
                    0.5003,
                    1.0
                ],
                "subsurface_method": "RANDOM_WALK_SKIN",
                "Roughness": 0.35
            },
            "label": "Principled BSDF.001",
            "name": "Principled BSDF.001",
            "output_socket_values": {}
        },
        {
            "attribute_values": {
                "color": [
                    0.35,
                    0.0,
                    0.35
                ],
                "height": 100.0,
                "location": [
                    -747.6187,
                    798.8463
                ],
                "use_custom_color": true,
                "width": 400.0
            },
            "class": "MpfbSkin",
            "input_socket_values": {
                "SSSAnisotropy": 0.0
            },
            "label": "Skin Settings",
            "name": "earsskingroup",
            "output_socket_values": {}
        },
        {
            "attribute_values": {
                "location": [
                    -1687.5262,
                    336.8824
                ]
            },
            "class": "NodeGroupInput",
            "input_socket_values": {},
            "label": "Group Input",
            "name": "Group Input",
            "output_socket_values": {}
        }
    ]
}""")

from .abstractgroupwrapper import AbstractGroupWrapper

class _NodeWrapperMpfbEars(AbstractGroupWrapper):
    def __init__(self):
        AbstractGroupWrapper.__init__(self, _ORIGINAL_NODE_DEF, _ORIGINAL_TREE_DEF)

    def setup_group_nodes(self, node_tree, nodes):

        def node(node_class_name, name, label=None, input_socket_values=None, attribute_values=None, output_socket_values=None):
            nodes[name] = AbstractGroupWrapper.node(node_class_name, node_tree, name, label=label, input_socket_values=input_socket_values, attribute_values=attribute_values, output_socket_values=output_socket_values)

        def link(from_node, from_socket, to_node, to_socket):
            AbstractGroupWrapper.create_link(node_tree, nodes[from_node], from_socket, nodes[to_node], to_socket)

        nodes["Group Output"].location = [233.8077, 683.8954]
        nodes["Group Input"].location = [-1687.5262, 336.8824]

        node("ShaderNodeBsdfPrincipled", "Principled BSDF.001", attribute_values={"location": [-144.3404, 677.2473], "subsurface_method": "RANDOM_WALK_SKIN"}, input_socket_values={"Base Color": [0.8, 0.6037, 0.5003, 1.0], "Roughness": 0.35})
        node("MpfbSkin", "earsskingroup", label="Skin Settings", attribute_values={"color": [0.35, 0.0, 0.35], "height": 100.0, "location": [-747.6187, 798.8463], "use_custom_color": True, "width": 400.0}, input_socket_values={"SSSAnisotropy": 0.0})

        link("Group Input", "Normal", "earsskingroup", "Normal")
        link("Group Input", "SSSWeight", "earsskingroup", "SSSWeight")
        link("Group Input", "SSSRadiusMultiplyer", "earsskingroup", "SSSRadiusMultiplyer")
        link("Group Input", "SSSIor", "earsskingroup", "SSSIor")
        link("Group Input", "SpotColor", "earsskingroup", "SpotColor")
        link("Group Input", "VeinColor", "earsskingroup", "VeinColor")
        link("Group Input", "SpotStrength", "earsskingroup", "SpotStrength")
        link("Group Input", "SpotScaleMultiplier", "earsskingroup", "SpotScaleMultiplier")
        link("Group Input", "SpotDetail", "earsskingroup", "SpotDetail")
        link("Group Input", "SpotDistortion", "earsskingroup", "SpotDistortion")
        link("Group Input", "SpotRoughness", "earsskingroup", "SpotRoughness")
        link("Group Input", "SpotValley", "earsskingroup", "SpotValley")
        link("Group Input", "SpotPeak", "earsskingroup", "SpotPeak")
        link("Group Input", "SSSRadiusX", "earsskingroup", "SSSRadiusX")
        link("Group Input", "SSSRadiusY", "earsskingroup", "SSSRadiusY")
        link("Group Input", "SSSRadiusZ", "earsskingroup", "SSSRadiusZ")
        link("Group Input", "Roughness", "earsskingroup", "Roughness")
        link("Group Input", "UnevennessScaleMultiplier", "earsskingroup", "UnevennessScaleMultiplier")
        link("Group Input", "UnevennessBumpStrength", "earsskingroup", "UnevennessBumpStrength")
        link("Group Input", "UnevennessDetail", "earsskingroup", "UnevennessDetail")
        link("Group Input", "UnevennessDistortion", "earsskingroup", "UnevennessDistortion")
        link("Group Input", "UnevennessRoughness", "earsskingroup", "UnevennessRoughness")
        link("Group Input", "DermalScaleMultiplier", "earsskingroup", "DermalScaleMultiplier")
        link("Group Input", "DermalBumpStrength", "earsskingroup", "DermalBumpStrength")
        link("Group Input", "SkinColor", "earsskingroup", "SkinColor")
        link("Group Input", "SmallVeinScaleMultiplier", "earsskingroup", "SmallVeinScaleMultiplier")
        link("Group Input", "LargeVeinScaleMultiplier", "earsskingroup", "LargeVeinScaleMultiplier")
        link("Group Input", "VeinStrength", "earsskingroup", "VeinStrength")
        link("Group Input", "ColorVariationStrength", "earsskingroup", "ColorVariationStrength")
        link("Group Input", "ColorVariationScaleMultiplier", "earsskingroup", "ColorVariationScaleMultiplier")
        link("Group Input", "ColorVariationBrightness", "earsskingroup", "ColorVariationBrightness")
        link("Group Input", "ColorVariationDetail", "earsskingroup", "ColorVariationDetail")
        link("Group Input", "ColorVariationDistortion", "earsskingroup", "ColorVariationDistortion")
        link("Group Input", "ColorVariationRoughness", "earsskingroup", "ColorVariationRoughness")
        link("Group Input", "SSSAnisotropy", "earsskingroup", "SSSAnisotropy")
        link("earsskingroup", "Normal", "Principled BSDF.001", "Normal")
        link("earsskingroup", "Color", "Principled BSDF.001", "Base Color")
        link("earsskingroup", "SSSRadius", "Principled BSDF.001", "Subsurface Radius")
        link("earsskingroup", "SSSWeight", "Principled BSDF.001", "Subsurface Weight")
        link("earsskingroup", "SSSIor", "Principled BSDF.001", "Subsurface IOR")
        link("earsskingroup", "Roughness", "Principled BSDF.001", "Roughness")
        link("earsskingroup", "SSSAnisotropy", "Principled BSDF.001", "Subsurface Anisotropy")
        link("Principled BSDF.001", "BSDF", "Group Output", "BSDF")

NodeWrapperMpfbEars = _NodeWrapperMpfbEars()
