specoolar / Blender-BakeLab2

Blender addon for baking images
GNU General Public License v3.0
304 stars 44 forks source link

Can't start baking process #1

Closed NazzarenoGiannelli closed 4 years ago

NazzarenoGiannelli commented 4 years ago

On my home pc with 2.82 I have no issues with your addon (and it's really awesome!), but at my studio workstation with almost identical settings and same Blender version I get this error:

Traceback (most recent call last):
  File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 808, in modal
    result = next(self.BakeCrt)
  File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 655, in Bake
    bake_image = self.PrepareImage(context, map, obj, obj.name)
  File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 427, in PrepareImage
    bake_image.colorspace_settings.name = map.color_space
TypeError: bpy_struct: item.attr = val: enum "Non-Color" not found in ('BT.1886 EOTF', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB EOTF')

location: <unknown location>:-1

I was trying to find the issue in the bakelab_bake.py, but I wasn't able to.

specoolar commented 4 years ago

Hello, Can you send me screenshot of your bake setup?

сб, 29 февр. 2020 г., 14:25 Nazzareno Giannelli notifications@github.com:

On my home pc with 2.82 I have no issues with your addon (and it's really awesome!), but at my studio workstation with almost identical settings and same Blender version I get this error: `Traceback (most recent call last): File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 808, in modal result = next(self.BakeCrt) File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 655, in Bake bake_image = self.PrepareImage(context, map, obj, obj.name) File "C:\Users\BoxxApexx1\AppData\Roaming\Blender Foundation\Blender\2.82\scripts\addons\Blender-BakeLab2-master\bakelab_bake.py", line 427, in PrepareImage bake_image.colorspace_settings.name = map.color_space TypeError: bpy_struct: item.attr = val: enum "Non-Color" not found in ('BT.1886 EOTF', 'Filmic Log Encoding', 'Linear', 'Non-Colour Data', 'sRGB EOTF')

location: :-1

` I was trying to find the issue in the bakelab_bake.py, but I wasn't able to.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Shahzod114/Blender-BakeLab2/issues/1?email_source=notifications&email_token=AKNUVRUCMVR3SJR4ZTZ7GWLRFDKBNA5CNFSM4K6SWRJKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRLIRQQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNUVRRLEFKF6QJCJLVL3GDRFDKBNANCNFSM4K6SWRJA .

NazzarenoGiannelli commented 4 years ago

Simple Suzanne, random channel added to the bake list with default settings Screenshot_2

After hitting Bake Screenshot_3 Screenshot_4

specoolar commented 4 years ago

I just fixed it on github, but i cannot test, because everything works for me. Can you test it?

сб, 29 февр. 2020 г., 15:40 Nazzareno Giannelli notifications@github.com:

Simple Suzanne, random channel added to the bake list with default settings [image: Screenshot_2] https://user-images.githubusercontent.com/13347022/75605938-15a0e580-5ae8-11ea-95a9-62829af02bfe.jpg

After hitting Bake [image: Screenshot_3] https://user-images.githubusercontent.com/13347022/75605941-176aa900-5ae8-11ea-8d5f-c4b65fab2f9a.jpg [image: Screenshot_4] https://user-images.githubusercontent.com/13347022/75605939-16397c00-5ae8-11ea-82ba-ca5a08b911d1.jpg

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Shahzod114/Blender-BakeLab2/issues/1?email_source=notifications&email_token=AKNUVRS5W2JU5VUGNJCZFULRFDS2BA5CNFSM4K6SWRJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENLWTFI#issuecomment-592931221, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKNUVRQ5YYTHAN6VPYMIMMLRFDS2BANCNFSM4K6SWRJA .

NazzarenoGiannelli commented 4 years ago

All good now! Thank you very much for the quick fix! I am gonna buy it on Gumroad for sure! It's gonna save me so much time! Thanks again for this awesome tool