DDS and Photoshop - Scriptable?

Does anyone know if there is a DDS plugin for Photoshop that can be controlled through script (VB or JS)?

Currently we export a temp texture file and run it through a command line tool to produce the DDS when inside a script.

I am wondering if it is possible to manage the DDS options through a Photoshop script, like this:


Set saveOptions = CreateObject("Photoshop.DDSSaveOptions")
saveOptions.generateMipMaps = true
appRef.ActiveDocument.SaveAs "c:	emp\myFile2", saveOptions, True, 2

you can, just use the ScriptLog to get a dump of the actionscript. You should be able to pick out the few variables in there that you can change. Then just wrap it in a nicer function. However, in my experience, I would suggest using the command line tools or some other process further down to do this. Its a better separation of responsibilities.

The action script is pretty gnarly, I think i’ll stick to the command line tools. Thanks!

LOL, guess I’m out of luck with the NVidia plugin:


#target photoshop
[B]// TODO needs work to support SaveAs with options and extensions on or off[/B]
app.activeDocument.saveAs( File ( "ddsTest1.dds" ), undefined,