Python Plugin - DDS Support (windows only)

Hey there! I’m about to hit you with a bit of a long-winded reply because I’m not sure what to say

Usually I work on a project where the last thing I do is export as DDS, because I’m painting out 10/50/100 images at a time in different layers, and I always dread reaching the end of the process because that means exporting each individual layer as a .dds using (on photoshop before I swapped) the Nvidia texture tool. My current fix to this issue is mass exporting the layers as .pngs, then converting them enmasse using XNconvert, but personally I would much rather prefer to just export all the layers, as they are named, directly to .dds to the folder I choose. XNconvert is OK but i have no control over the .dds format, so I’ll reach a wall eventually on that method when I require something other than DXT5.

So the goal is to go to .dds directly from my .kra project, without as much hassle, or the even worse alternative for me is clicking tools → scripts → Export as DDS → select format, rince repeat 10-300 times.

I hope this clarifies a bit what I’m doing and asking for.

Also, is it possible to change the default button of the exporter ui from Cancel to Save? By that I mean, the button that is clicked when you click enter on your keyboard. I’m completely ignorant when it comes to software.

There is a paid plugin, called Actuator, which is to automate actions, so you can chain your actions together and then let Actuator replay them. I’m using it for some tasks and like it very much, maybe you can make use of it, it costs ~$10 and for me, it is worth each Cent.
It is found here:
Actuator - Automate Sequences of Actions : Krita Plugin [paid]

Michelist

1 Like

Hi Ja_rl,

I can try to adapt the plugin so that you select the input folder and the output folder, and all of the .kra files from the input folder are exported as .dds to the output folder. Would that work then? :slight_smile: The same configuration options would pop-up, but it would apply to all of the files in the input folder instead of just the one open in Krita.

Concerning the default button, I have no idea how to set the default button to be another one to be honest with you x)

Hi, i just found this plugin today and it is amazing, it worked really in the exact way i needed, but i found something missing on my end.
When i finished my project and was trying to extract as dds, i couldn’t find a way to export it without doing any type of compression, i’m forced to use one.

Is there a way to add an option that would let me just export the dds, without using any type of compression? I searched for it, but couldn’t find it.

And again, wonderful plugin :slightly_smiling_face:

Hi FelipeMCoelho,

For some reason, I didn’t get an e-mail notifying me of a post in here.

Which compression are you referring to? The one of the DDS file itself?

For the DDS to be in an uncompressed format, the compression command must be equal to “R8G8B8A8_UNORM”. I think :slight_smile: I’ll add the option in the script and update it in the Github.

The reason why this was not added before is because I was not expecting anyone to actually want an uncompressed DDS file :smiley: I thought people usually used TGA for uncompressed image files.

2 Likes

Hi Esuriddick, hope everything is okay over there.

I was refering at the time of exporting the file to DDS, the type of compression that i needed (in that case no compression) wasnt’available.

A friend of mine is in need of some help with DDS files and i came across your plugin, but when i asked him which type of compression he needed after finishing the edits on the file, he said no compression, strange but it’s working for him haha.

Thanks a lot for taking your time to update the script, i will take a look into it as soon it’s available in the GitHub :slightly_smiling_face:

If it’s easier for you, instead of adding a new compression type, putting a checkbox in the compression type so we can skip that process if not necessary could also work, i think :sweat_smile:

Again, thanks a lot for taking a loot into it, will take a look on it as soon the update is available :slightly_smiling_face:

I have updated the plugin. It is not a checkbox as I did not want to change the layout of the menu now, but it is an option (“Uncompressed”).

Hope it works for your purposes :slight_smile:

2 Likes

I’m gonna do some testings with it, thanks for helping and doing another update on it :slightly_smiling_face:

1 Like