@add_object.register(core.PrincipledBSDFMaterial)
def _add_object(obj: core.PrincipledBSDFMaterial):
    mat = bpy.data.materials.new(obj.uid)
    mat.use_nodes = True
    bsdf_node = mat.node_tree.nodes['Principled BSDF']
    setters = {'color': core.AttributeSetter(bsdf_node.inputs['Base Color'], 'default_value'), 'roughness': core.AttributeSetter(bsdf_node.inputs['Roughness'], 'default_value'), 'metallic': core.AttributeSetter(bsdf_node.inputs['Metallic'], 'default_value'), 'specular': core.AttributeSetter(bsdf_node.inputs['Specular'], 'default_value'), 'specular_tint': core.AttributeSetter(bsdf_node.inputs['Specular Tint'], 'default_value'), 'ior': core.AttributeSetter(bsdf_node.inputs['IOR'], 'default_value'), 'transmission': core.AttributeSetter(bsdf_node.inputs['Transmission'], 'default_value'), 'transmission_roughness': core.AttributeSetter(bsdf_node.inputs['Transmission Roughness'], 'default_value'), 'emission': core.AttributeSetter(bsdf_node.inputs['Emission'], 'default_value')}
    return (mat, setters)
@add_object.register(core.PrincipledBSDFMaterial)
def _add_object(obj: core.PrincipledBSDFMaterial):
    mat = bpy.data.materials.new(obj.uid)
    mat.use_nodes = True
    bsdf_node = mat.node_tree.nodes['Principled BSDF']
    setters = {'color': core.AttributeSetter(bsdf_node.inputs['Base Color'], 'default_value'), 'roughness': core.AttributeSetter(bsdf_node.inputs['Roughness'], 'default_value'), 'metallic': core.AttributeSetter(bsdf_node.inputs['Metallic'], 'default_value'), 'specular': core.AttributeSetter(bsdf_node.inputs['Specular'], 'default_value'), 'specular_tint': core.AttributeSetter(bsdf_node.inputs['Specular Tint'], 'default_value'), 'ior': core.AttributeSetter(bsdf_node.inputs['IOR'], 'default_value'), 'transmission': core.AttributeSetter(bsdf_node.inputs['Transmission'], 'default_value'), 'transmission_roughness': core.AttributeSetter(bsdf_node.inputs['Transmission Roughness'], 'default_value'), 'emission': core.AttributeSetter(bsdf_node.inputs['Emission'], 'default_value')}
    return (mat, setters)