Any Python libraries for processing dds / dxt images?

Hello, I’ve been recently trying to do a few tests to convert my tga-based game pipeline in Maya to using dds textures for cgfx-shaders for performance gains.

I’ve had some success with the dds Photoshop plug-in:

But obviously, this needs to get automated to process hundreds of textures, so I’m wondering if anyone knows of an equivalent Python library? Particularly, with functions to convert and compress textures into dds?

Thx for any feedback.

I think the simplest way would be write something to wrap nVidia Texture Tools.
I did write a converter to pass on a tiff file into that cui tool and have texture outputted.
Pretty simple stuff.

you can simply batch convert .tga to .dds via the nvidia command prompt application instead of going through photoshop. You get a list of all options in the included help .pdf.

http://developer.nvidia.com/object/dds_utilities_legacy.html

I did this a couple weeks ago actually I would suggest opening a COM object to photoshop and export them out then you can open Maya with the same script and change the material assignment.

You will need the python window extensions which can be found here http://python.net/crew/mhammond/win32/

If you need more help let me know I’m in the IRC a lot or just post here. :D: