The console results are correct, The result of running the script is wrong
I want to know what the problem is and run it in the script
def func(listTemp, n):
for i in range(0, len(listTemp), n):
yield listTemp[i:i + n]
def ins1():
a=bpy.data.meshes[0]
b=bpy.data.objects
d = [x for ob in bpy.data.objects for x in ob.dimensions]
temp=func(d,3)
e=[]
for i in temp:
e.append(i)
for x,y in zip(b,e):
x.dimensions=y
for w in b:
w.data=a
return(e)
aa=ins1()
def ins2():
b=bpy.data.objects
for x,y in zip(b,aa):
x.dimensions=y
return
ins2()