aircraft.writeStructure('temp'+str(counter)) counter += 1 n = 50 for i in range(n): v = i/(n-1) c['fuse'].setSections(sections=[2,3,4,5], t1L=0.35*v, t2L=1.0-0.35*v) c['fuse'].props['posy'].set([0.5-0.2*v,0.5,0.5],[0,0.15,1],w=[1.0,0,0],d=[1,0,0]) c['fuse'].props['ry'].set([0.3-0.2*v,0.5,0.5,0.1],[0,0.15,0.75,1.0],w=[0.9985,0,0,0],d=[1,0,0,0]) c['fuse'].props['rz'].set([0.3-0.2*v,0.5,0.5,0.1],[0,0.15,0.75,1.0],w=[0.9985,0,0,0],d=[1,0,0,0]) c['fuse'].props['noseL'] = 0.3-0.2*v aircraft.computePoints() aircraft.export.write2Tec('temp'+str(counter)) aircraft.writeStructure('temp'+str(counter)) counter += 1 t = Tecplot() for i in range(counter): t.importDataSet('temp'+str(i),True) t.createMirror(1,165,3) t.importDataSet('temp'+str(i)+'_str') t.setTranslucency(1,2617,50) t.setTranslucency(166,330,1) # t.setTransparency(False) t.setRelCameraPosition(-20, 10, 20, -140) t.writeImage('temp%03d'%(i)) t.runTecplot() for i in range(counter,counter+30): os.system('cp temp%03d.png temp%03d.png'%(counter-1,i)) t.makeVideo()