I like this, it looks clean.
Can we still use the default way though?
Can make a way. Should access be from texture panel or addon preferences?
From texture panel, something akin to the screenshot I posted above.
Thatās it! Really nice job!
You think you can share the code to test it or are you still working on it?
Yeah, still working on it. I got it working for Sculpt, Vertex Paint and Texture Paint, not just for Sculpt mode. Took two days to figure out a problem I was having. Now, Iām trying to figure out a error itās returning when a sub category is not found after changing the category. This is why itās taking so long. Mask texture for Texture Paint pretty much doubles up the code ,so I might delete all that to help with tracking errors and get a test version ready.
No pressure, thanks for your work!
Hereās my error. You can see how itās hard to find the cause, when thereās like 1000 lines of code and it doesnāt point to any line in the addon file.
WARN (bpy.rna): C:\blender-git\blender\source\blender\python\intern\bpy_rna.c:1476 pyrna_enum_to_py: current value '1' matches no enum in 'BrushTexture', '', 'sub_texture'
OK, think I figured out the issue.
OK, we now have a āNONEā option. Can select it to remove texture from brush. Also, removed the texture settings below and only displaying the assigned texture name ,cause the texture gets replaced and the options are kinda useless cause they donāt stay. Might could change this behavior later.
Canāt wait to try what you did!
Is the Default View / Library View still needed?
You wanted it, LOL. You can tell me if itās needed once you test it.
I kinda hijacked your addon and thread, LOL.
Hahaha, thatās okay, because I wouldnāt have kept developing it beyond my basic needs for lack of time and coding skills. But Iām glad you got interested in it that much!
Would it be possible to select alphas even if the thumbnail isnāt showing? Theres a whole array of alphas I canāt select using this, without painstakingly converting them. Managed to batch process most of my alphas, but not some psdās for example.
You see this?
[Addon] Texture library manager
Looks like a similar addon ,but it looks like it just creates a texture for every image in the folder and you have to add the folder each time. I think just a creating a texture based on selection and selecting a main path is better idea.
Addon looks for jpg, jpeg, png and tif files.
I just tried it. The only thing I like is that it solves the preview conflict, kind of. But it also introduce a new set of problems:
- The main one is that the more textures you have in your scene, the more they mix with the alphas, and it becomes a burden to scroll to find them. And I donāt like the system of hiding/unhiding the categories because you can even mix the textures from multiple categories. I want each category to be kept clean and only show the brushes it contains.
On a side note, scrolling is messed up in Blender. Iāve made that thread, but it didnāt catch the developpers attention much:
https://devtalk.blender.org/t/mouse-scrolling-issues-in-drop-down-panels-with-thumbnails/10097 - Also I prefer my interface with just a category (or two) drop down list above the preview. Not a fan of having the categories in the sidebar.
- Iād rather keep a library path in the addon prefs to avoid having to setup it up at each session or having to bother updating when I add or remove folders in my drive.
I tried to add it, but the problem is that .psd files donāt generate thumbnails, and consequently the preview doesnāt even index themā¦
???
Doesnāt show thumbnails like regular pics on my computer ,but it does for the previews in Blender.
OK, I think itās error and bug free, LOL. You can test and see what you think.
textures_manager_no_mask_b.py (41.9 KB)
Overall, itās working very smoothly! Itās nice that we can customize the Show Labels and the Preview Scale (Iād put the default scale of the preview the same as the default one, so the interface doesnāt jolt when switching previews).
Itās also nice you added the .psd format!
Here are some adjustments to improve the UX:
- The toggles Default Preview / Library Preview and Images / Procedural do the same thing, donāt they? We could remove one and make 2 button like this (see mockup below), it would be more clear to the user what he does at first glance, and where he finds himself. Iām keeping the layout as close as possible to the original. The only thing that appears/disappears when switching previews is the Categories drop down.
- If possible, when the user creates a New texture from the Properties Editor, could it set the texture from Library to None (if there was one) and switch automatically to Default Preview, so the user sees what happens?
- Iād remove the āCategoriesā text to leave only the drop down list (more space to see the full titles if long). Itās pretty self explanatory. Eventually putting a description when hovered.
- The file paths fields should stay in the addon prefs. I consider it should be in the File Paths only if it gets adopted officialy by Blender.
- I think we should keep the description of how to setup the folders structure in the addon prefs.
- Can we keep that bar with the name and at least a Close button that resets to None? (saves one click if we want to remove it and it also keeps visually the appearance more similar to Default Preview).
Hereās the mock up:
Also you can add your name as an author if you want, since you helped a lot!