Hello guys. I would like to share with you a little tool created by my brother Tiago Lourenço. When we are editing tracks and the scene file manually sometimes we have more GMT files on GMT folder than we really need and this tool its exactly to that. You open the GMT folder, then your *.scn and for the last your new GMT folder to output only the files that have entries in *.scn file. The files are copied and not exported to keep the original 3ds max settings. Its a very small tool that save me a lot of time because I don't want to open *.scn file in 3dsimed to export new GMT files. Note: Make sure you have the last the .net framework installed. Download: here Happy modding
Awesome work this will be a great tool. If you can somehow extend it to textures then your brother is a god. Thanks for sharing. Sent from my GT-I9505 using Tapatalk
I'll ask him about that. But to do that job right now I'm using 3dsimed. we can open the track and export(Copy) the textures of the object that are open.
Searcing the file for textures is quite possible. Store the file's contents as a string, then use regular expressions to find all matches for the pattern 'any number of word characters', '.', and each possible extension (dds, png, jpg and so on). Before deleting a texture you need to check that it's not being used by an object that is used on your track. PM me if you need more info.
It is a possible way. As soon as possible I'll take a look into that. Thank you for the suggestion. With a few modifications on the code and it will work just as fine. I'll also do it as soon as possible. Thank you.
This may already be obvious, but I'll mention it to prevent problems. Loop through the used objects first, and store their textures in a list, then loop through the unused objects and only delete textures that aren't in the list.
If you use gen files, don't forget the Upgrades files, if upgrades, using different gmt, are available.
This practicing with some private investment, and still have not much knowledge. I go very slowly because I do not speak English well at all and I find this documentation in English. Anyway thank you very much Nuno. regards, Corti.