This one should work for you (R0150100 only) since you seem to have the correct mesh order in blender:
Code: Select all
import bpy
import os
xpos = [-100.000000, -700.000000, 700.000000, -700.000305, 760.000000, 0.000000, -0.027229, -3.536329, -2.081530, 2.326791, 3.596203, -0.000244, 0.069946, -765.113770, -20.000122, 762.751953, -635.709473, -640.251709, 727.946289, -785.405518, 0.000244, 0.000000, 0.000000, -0.000244, 0.000000, 0.000000, 0.000244, -177.846680, 0.000244, 0.000122, 49.999512, -137.598511, -137.587402, -89.009033, 18.950439, -1.169922, 352.408081, 105.000244, 84.999756, -351.997925, -104.822021, -85.878174, -525.005859, 525.004150, 0.001953, 609.675781, -612.512939, 0.003052, -0.000122, -186.250122, 186.249100, 288.609528, -2.849365, 0.000122, -582.205261, -599.000488, -599.000488, 599.002930, 599.002930, 1.706665, 164.398682, 0.000488, 49.999512, 4.201935, -50.000488, -575.000244, -654.387817, -652.080444, -575.000244, -384.999878, 0.001709, 385.000122, 575.000244, 600.000122, 600.001587, 575.000244, 684.881104, 684.881104, 684.881104, 684.881104, -725.284668, -725.284668, -725.284668, 413.934418, -701.876770, -701.876770, -701.876770, 8.344727, 667.232117, 667.232117, 667.232117, 667.232117, 2.430664, -490.494263, -620.652344, -681.873108, -569.835938, 455.013794, 455.013794, -709.293945, -142.530518, 124.498047, -136.929810, 0.000000, 0.071777, 0.333496, -38.095703, 0.000000, -57.500916, 0.055633, -0.925760, -3.120224, -0.925762, 2.624954, 2.624956, 0.000000, 0.000000, 0.000000]
ypos = [-300.000000, -400.000000, -300.000000, -299.999634, 100.000000, -300.000000, -305.598328, -306.488708, -307.886871, -307.825317, -306.358246, -296.068481, -143.611725, -49.999603, 262.500183, -30.821960, -237.015808, -165.977097, 217.744064, 217.602173, 672.012268, 63.583008, -50.249176, -99.999611, -257.304901, -244.999542, 85.000427, -202.499786, 525.000427, 102.388931, -307.499786, -250.712860, -236.057388, -168.191055, -172.121826, -301.830048, -258.406952, -258.406952, -308.406952, -258.406952, -258.406952, -308.406952, 150.000381, 150.000443, 150.000397, -73.584076, -73.411667, 42.717148, -187.499924, -118.406403, -118.406403, -82.249947, -149.999619, -375.314453, -350.588348, -189.387543, -145.033096, -150.681015, -206.776337, -147.736404, -299.000000, -6.364342, -339.499573, -298.999573, -530.276733, -495.723480, -543.960571, -450.000214, -347.461212, -449.999756, -450.000000, -449.999756, -395.723480, -449.999359, -480.276703, -495.723450, 300.152924, 300.152924, 300.152924, 300.152924, 299.974030, 299.974030, 299.974030, 1116.072754, 291.930634, 289.453705, 290.585907, 300.000000, 290.585907, 289.911163, 289.453705, 291.930634, 627.780884, -656.590515, -536.685120, -602.512146, -466.607483, -656.590515, -580.526489, 262.092316, -296.615082, -188.741364, -224.600006, -295.249786, -230.874573, -292.125153, -399.999573, -349.999573, -300.000000, -307.008087, -305.975037, -306.984222, -307.993378, -307.574921, -306.274139, 0.000000, 0.000000, 0.000000]
zpos = [1200.000000, 600.000000, 1150.000000, -350.000458, 1000.000488, -925.000000, 128.659042, 131.176575, 135.096680, 135.013596, 131.054565, -58.334961, 1178.579102, 400.000000, -4.000488, 1050.000000, 700.120117, -300.000000, 1049.999023, 99.994141, -1222.187012, 87.499023, 1187.896973, -150.000000, 99.500000, -399.999512, 1254.003906, 74.999023, 0.000000, 74.999268, 1149.997559, -304.902832, -510.002930, -399.114258, -357.881836, 102.500000, 859.999512, 942.841797, 897.500000, 859.999512, 942.841797, 897.500000, 87.499268, 87.501221, -1008.298645, 1100.000000, -300.000000, 1143.500488, 1220.000000, 1181.250488, 1181.250854, 1172.502075, 950.000000, -399.999023, 848.994751, 499.978027, -800.021729, -800.333984, 499.665527, -1098.999512, 1121.285645, 1159.000488, 929.995117, 924.995544, 792.499756, 500.000000, 185.398682, -657.100708, -800.000000, -1100.000000, -1027.500244, -1100.000000, -800.000000, -624.709106, 349.999847, 500.000000, -972.294922, -500.000977, -0.000977, 499.999023, -972.294922, -527.124023, 849.543457, 1099.998413, -973.177490, -527.479004, 849.260742, -1248.000977, 499.116364, -0.883648, -500.883850, -973.177795, -1220.352539, 499.999939, 698.147949, -304.306335, -805.190430, 499.999939, -799.999573, 100.738708, -190.215820, -190.205566, -513.561035, -127.250000, 860.000000, 291.500000, 349.998535, 100.000000, -650.002319, 132.176987, 129.338715, 132.185669, 135.032623, 133.957184, 130.457596, -502.704498, -502.704498, -502.704498, -502.704498, -502.704498, -502.704498, 0.000000, 0.000000, 0.000000]
i=0
for curSelObj in bpy.data.objects:
# verts
#for i in bpy.context.selected_objects:
if curSelObj.type == "MESH":
print(curSelObj.name)
for vertex in curSelObj.data.vertices:
#print(vertex.co)
vertex.co.x += xpos[i]; vertex.co.y += ypos[i] ; vertex.co.z += zpos[i]
i += 1