import bpy
obData=bpy.context.object.data
obCopy=obData.copy()
for i in obCopy.attributes:
if i.data_type == 'FLOAT2' and i.domain == 'CORNER':
obUv = obData.uv_layers.new()
for a,b in enumerate(i.data):
obUv.data[a].uv = b.vector
bpy.data.meshes.remove(obCopy)
出處