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

Error when baking Other Object's layer when the other object is Text or Curves #126

Closed
alexking opened this issue Jun 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alexking
Copy link

alexking commented Jun 9, 2024

I'm not sure if this is supported, but I've found an issue while baking other objects to a channel, where if the object isn't a mesh (and is instead a text or curve), a python error appears and it doesn't work.

Error: Python: Traceback (most recent call last):
  File "[...]\Blender Foundation\Blender\4.1\scripts\addons\ucupaint\BakeToLayer.py", line 1072, in execute
    prepare_bake_settings(book, objs, yp, samples=self.samples, margin=self.margin,
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "[...]\Blender\4.1\scripts\addons\ucupaint\bake_common.py", line 561, in prepare_bake_settings
    uv = uv_layers.get(uv_map)
         ^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'get'

I believe this is happening because in common.py it returns a blank array if it isn't a MESH, which it doesn't seem like prepare_bake_settings is expecting.

@ucupumar ucupumar added the bug Something isn't working label Jun 9, 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