ucupaint icon indicating copy to clipboard operation
ucupaint copied to clipboard

[Feaature] Bake selected objects only

Open m00nk opened this issue 1 month ago • 3 comments

Added an ability to bake using the selected objects only.

m00nk avatar Oct 28 '25 13:10 m00nk

Thanks for the PR! This seems a very simple solution for your problem, but it looks like the user needs to reselect the objects every time they want to do the rebake.

All other ucupaint operations remember what you select previously, like for example in baking other objects normal, after you've done the baking once, you don't need to select the source objects again to rebake. I think this behavior should also be integrated into your PR in some way. Let me know what you think.

ucupumar avatar Nov 05 '25 09:11 ucupumar

Hi.

You might be right, but I don't know for sure, since I only use ucupaint one way and don't have enough experience to assess the necessity of preserving object selection.

In my workflow, I bake quite rarely, and with my changes, I only need to select one object, so in my particular case, the lack of preserving selection isn't a big deal. But perhaps for someone with a different workflow, it will be useful or even critical.

m00nk avatar Nov 05 '25 11:11 m00nk

Yeah, we should consider every scenario when a new feature is being implemented. All the bake information is currently stored in BakeInfo instance in the baked image, maybe you can check that. If you need more guidance on how ucupaint works, we can also discuss more details in the discord server (https://discord.gg/BdNfGGzQHh)

ucupumar avatar Nov 05 '25 15:11 ucupumar