ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
1.37k stars 43 forks source link

Make image packing/unpacking functionality clearer, protect against saving over images used externally #172

Closed FairlySadPanda closed 1 month ago

FairlySadPanda commented 1 month ago

I've had a lot of trouble trying to stop Ucupaint from accidentally saving over a file I'm actually using in my game editor.

Sometimes a layer or a baked image ends up referencing the same file my game editor is using for a material, and when that layer is saved or modified on Blender's side, it writes to a file I don't want changed.

I think that packing/unpacking images is really unclear in what it does and why you should/should not have an image packed. I didn't find clear guidance online.

Likewise baking a file often is to support getting the result of my work out into my game editor. The problem is that if I need to re-bake this file, and I saved directly into my game editor's asset folder, the re-bake can update the file even if I'm trying to create a new variant of a material.

This all means I have to make a special folder just to place all my Ucupaint work and then manually copy out stuff I've made from that folder into where I want to use it.

I'd like Ucupaint to either have an option to, or default to, not overwriting an external texture file unless the user is aware of what file is being overwritten where, and when baking a texture to be able to specify the name of the baked file and where it'll go in the bake pop-up window, so the user can choose to overwrite an old file or make a new one.

ucupumar commented 1 month ago

Packed means the images are packed inside the blend file so that it won't mess with your external files. There's Copy option when you're doing a Save as Image in blender so your saved images won't be used as the image source. image

The option is only available for standard Save as Image operator though. I still need to add Copy option to Save all baked images operator

FairlySadPanda commented 1 month ago

Thanks; this information would be good to have in the documentation.

ucupumar commented 1 month ago

I just added a menu listing for easier to save an image copy. It can be accessed here for standard image image Or here for quickly save all baked channel image copies image