Hello,
New version again ...
Attachment:
			File comment: File comment: Copy the python script in C:\Program Files\Blender Foundation\Blender\2.60\scripts\startup (windows)
		
			
				 tri_import_export_260.7z [5.21 KiB]
			
			Downloaded 2418 times
 
				tri_import_export_260.7z [5.21 KiB]
			
			Downloaded 2418 times
		
		
	 This time the script can read and write even format 0 of tri file  
 
 And sort texture to avoid texture swap in the same object/file !  
 
   
   
 Using the great cinemal.tri (wich is a nightmare  

 with texture name / and lot's of very dirty things !)
Quote:
60% (11726)
70% (13680)
80% (15634)
90% (17589)
100% (19542)
.tri file need 7806 textures swap
Mesh Imported Vertices:58627 Edges:58627 Faces:19542.
close file.
Elapsed: 3.656000
Yes 7806 texture swap !!!
Trying to export:
Quote:
70% (13685)
80% (15640)
90% (17595)
100% (19542)
Removing temporary object.
Closing tri file.
Restoring State.
Texture swap count:28.
Elapsed: 11.188000
And now only 28 swap(s) !!!
With wild_west1 reducing from 1227 to 10 texture swap.
I'm not really sure of this count values, but .tri seems to be well organised ! Need to be count in raydium to for validation.
test it and report bugs (if any  

 )
Have a nice day.
Ouille