chsh2 / import_paint_brush

An add-on converting brush assets from popular painting software to Blender brushes
GNU General Public License v3.0
17 stars 0 forks source link

Error when batch importing CSP brushes in sut file format #2

Open HeidiGitDE opened 1 week ago

HeidiGitDE commented 1 week ago

I created a git account just to submit this issue, please be patient if I did something wrong.

Image

Image

These are the error I get when I try importing my brushes to Blender

HeidiGitDE commented 1 week ago

Right, I am using Blender 4.4.3 with Steam on a Windows 10

HeidiGitDE commented 1 week ago

Image

I retried it and made sure that I selected TexturePaint mode and I still got an error

HeidiGitDE commented 1 week ago

I managed to import some brushes to Blender. here's what I found as a Clip Studio Brushes user:

  1. The brushes often don't import properly or just refuse to do so.
  2. If one Brush does not import, none of the subsequent brushes import because the code just stops.
  3. It is not very intuitive as to why it did not import.
  4. Some of my brushes imported with issues that they didn't have before, example some stamps imported as airbrush-like brushes.
  5. This could just be my imagination, but the textures of my imported brushes look very compressed, like an old JPEG.
  6. "Noise Brushes" where my main issue importing as it said they didn't have a PNG associated with the brush.
  7. Most of if not all of my settings from my brushes were gone sadly when importing them.
  8. Brushes that had many images associated with them, like water droplets or many textures in general, would only be imported as a single image and those would then be separated from each other.
  9. The Place where the brushes are stored is not really displayed when you try to look it up, and my brushes were gone after reopening blender.
chsh2 commented 1 week ago

Thank you for the detailed feedback. There might be multiple issues involved:

name 'get_cache_folder()' is not defined

This is a bug making the option unavailable to save icons to the cache folder. I will fix it soon.

"No such file or directory" error for Add Noise Texture.sut

I do not have this brush, but maybe it is because the texture name contains some special characters. I think I can also try to fix this.

  1. If one Brush does not import, none of the subsequent brushes import because the code just stops.

Yes I noticed that it is not convenient. I will see if I can improve the process.

  1. The Place where the brushes are stored is not really displayed when you try to look it up, and my brushes were gone after reopening blender.

Since 4.3, Blender is using a new brush asset system. After importing, the .blend file should be saved in Blender\4.4\datafiles\assets\brushes or any of your asset library. Otherwise, the brushes can only be used in the current file.


About CSP brushes:

  1. Most of if not all of my settings from my brushes were gone sadly when importing them.
  2. Brushes that had many images associated with them, like water droplets or many textures in general, would only be imported as a single image and those would then be separated from each other.

CSP has much more complex brush settings than Blender. Currently, I can only convert some basic attributes to Blender. It is also a limitation in Blender that one brush cannot have multiple texture images. So I have to separate them.

  1. This could just be my imagination, but the textures of my imported brushes look very compressed, like an old JPEG.

I do notice that the same brush looks better in CSP and worse in Blender, but I extract the images without compressing them. I found that some images have rather low resolution. Maybe CSP uses some upscaling methods? I do not have an answer now and have to investigate it further.

In general, there are limitations in importing CSP brushes due to their complexity and the lack of an official specification. I will keep tracking these problems, but I cannot guarantee that solutions can be found quickly.