Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display error popup when AOBake to layer #111

Closed
emptybraces opened this issue May 18, 2024 · 6 comments
Closed

Display error popup when AOBake to layer #111

emptybraces opened this issue May 18, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@emptybraces
Copy link

I got this stacktrace but I'm newbie didn't know what happen.

Python: Traceback (most recent call last):
File "C:\Users\motos\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\BakeToLayer.py", line 1671, in execute
layer = Layer.add_new_layer(node.node_tree, layer_name, 'IMAGE', int(self.channel_idx), self.blend_type,
^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: ''

I was doing a tutorial using my clothes mesh.
When I AO bake, after a little while, I get error message, showing the hidden hair and body, and the clothes are hidden.
I do reappear clothes mesh and try again, bake will be successful.
I hope this helps for something.

@ucupumar
Copy link
Owner

I can't seem to reproduce the issue here. Can you upload an example file?

@emptybraces
Copy link
Author

Thank you for quick fix, But I downloaded latest code mannually then applied and still does error occurs, seems to be another one.

Python: Traceback (most recent call last):
File "C:\Users\motos\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\BakeToLayer.py", line 1569, in execute
image = denoise_image(image)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\motos\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\bake_common.py", line 890, in denoise_image
recover_composite_settings(book)
File "C:\Users\motos\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\bake_common.py", line 819, in recover_composite_settings
set_active_object(ori_object)
File "C:\Users\motos\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\common.py", line 618, in set_active_object
bpy.context.view_layer.objects.active = obj
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: ViewLayer 'ViewLayer' does not contain object 'Woman_Basics_Swimsuit_2'

@ucupumar
Copy link
Owner

can you provide a sample blend file?

@ucupumar ucupumar reopened this May 21, 2024
@emptybraces
Copy link
Author

I tried make minimum sample, but why, I couldn't do it this time, sorry.

@ucupumar
Copy link
Owner

I couldn't reproduce the issue here, so I can't fix the bug if there's no sample blend file.

@ucupumar
Copy link
Owner

Okay, I can reproduce the issue here, please create a proper bug report next time.

@ucupumar ucupumar added the bug Something isn't working label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants