import bpy bpy.ops.mesh.primitive_cube_add(location=(0.000000,0.000000,0.000000), rotation=(0.000000,0.000000,0.000000)) bpy.context.object.name="lExpHall_0" bpy.context.object.scale[0]=200.000000 bpy.context.object.scale[1]=50.000000 bpy.context.object.scale[2]=150.000000 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') bpy.ops.mesh.primitive_cube_add(location=(-100.000000,0.000000,0.000000), rotation=(0.000000,0.000000,0.000000)) bpy.context.object.name="lFront_7" bpy.context.object.scale[0]=1.000000 bpy.context.object.scale[1]=20.000000 bpy.context.object.scale[2]=20.000000 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') bpy.ops.mesh.primitive_cube_add(location=(0.000000,0.000000,0.000000), rotation=(1.570796,-1.570796,0.872665)) bpy.context.object.name="lDirc_8" bpy.context.object.scale[0]=21.000000 bpy.context.object.scale[1]=21.000000 bpy.context.object.scale[2]=102.500000 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') bpy.ops.mesh.primitive_cube_add(location=(0.000000,0.000000,0.000000), rotation=(1.570796,-1.570796,0.872665)) bpy.context.object.name="lBar_2" bpy.context.object.scale[0]=0.850000 bpy.context.object.scale[1]=1.600000 bpy.context.object.scale[2]=62.500000 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') vertArb8 =[(-5.830127,-15.000000,-8.500000),(-5.830127,15.000000,-8.500000),(-2.830127,15.000000,-8.500000),(14.490381,-15.000000,-8.500000),(-5.830127,-15.000000,8.500000),(-5.830127,15.000000,8.500000),(-2.830127,15.000000,8.500000),(14.490381,-15.000000,8.500000)] faceArb8 = [(0, 1, 2, 3),(4, 7, 6, 5),(0, 4, 5, 1),(1, 5, 6, 2),(2, 6, 7, 3),(4, 0, 3, 7)] meshArb8 = bpy.data.meshes.new("lPrizm_5") meshArb8.from_pydata(vertArb8,[],faceArb8) meshArb8.update(calc_edges=True) objArb8 = bpy.data.objects.new("lPrizm_5", meshArb8) bpy.context.scene.objects.link(objArb8) objArb8.select = True bpy.context.scene.objects.active = objArb8 bpy.context.object.location.xyz = [62.917841,0.000000,47.141758] bpy.context.object.rotation_euler.x=2.443461 bpy.context.object.rotation_euler.y=1.570796 bpy.context.object.rotation_euler.z=4.712389 bpy.ops.mesh.primitive_cube_add(location=(77.230162,0.000000,53.498641), rotation=(1.570796,-1.570796,0.872665)) bpy.context.object.name="lMcp_6" bpy.context.object.scale[0]=10.160254 bpy.context.object.scale[1]=8.500000 bpy.context.object.scale[2]=0.050000 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') bpy.ops.mesh.primitive_cube_add(location=(77.230162,0.000000,53.498641), rotation=(1.570796,-1.570796,0.872665)) bpy.context.object.name="lPixel_1" bpy.context.object.scale[0]=10.160254 bpy.context.object.scale[1]=8.500000 bpy.context.object.scale[2]=0.006250 bpy.ops.object.origin_set(type='ORIGIN_CENTER_OF_MASS') bpy.ops.object.select_all(action='TOGGLE') for obj in bpy.context.scene.objects: obj.select = True bpy.ops.object.origin_set(type='ORIGIN_CURSOR') bpy.ops.transform.resize(value=(0.1, 0.1, 0.1))