Page 1 of 1

Getting a error when attempting to use the LuxCore online Library

Posted: Wed Feb 10, 2021 10:44 am
by Mercury
Hello,

There is probably something fundamental I am not understanding but when I drag an item from the bar to the scene I get the following error.

I have tried uninstalling and reinstalling blender but no change.

Thanks

Python: Traceback (most recent call last):
File "C:\Users\YYY\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\BlendLuxCore\operators\lol\assetbar.py", line 917, in modal
context, mx, my)
File "C:\Users\YYY\AppData\Roaming\Blender Foundation\Blender\2.91\scripts\addons\BlendLuxCore\draw\lol\viewport.py", line 393, in mouse_raycast
bpy.context.view_layer, ray_origin, vec)
TypeError: Scene.ray_cast(): error with argument 1, "depsgraph" - Function.depsgraph expected a Depsgraph type, not ViewLayer

location: <unknown location>:-1

Re: Getting a error when attempting to use the LuxCore online Library

Posted: Wed Feb 10, 2021 11:22 am
by Martini
That happens to me too on Blender 2.91.2, but it works fine on Blender 2.83.12. I think it means that the Blender developers changed something with the latest API version that isn't compatible with the way drag & drop works for this addon.

You can work around the issue for now, by clicking exactly (don't drag) on the thumbnail you want to import. Make sure to keep the mouse perfectly still, and it will import correctly at the location of the 3D cursor.

Re: Getting a error when attempting to use the LuxCore online Library

Posted: Wed Feb 10, 2021 12:51 pm
by Mercury
Martini wrote: Wed Feb 10, 2021 11:22 am That happens to me too on Blender 2.91.2, but it works fine on Blender 2.83.12. I think it means that the Blender developers changed something with the latest API version that isn't compatible with the way drag & drop works for this addon.

You can work around the issue for now, by clicking exactly (don't drag) on the thumbnail you want to import. Make sure to keep the mouse perfectly still, and it will import correctly at the location of the 3D cursor.
Thanks Martini, you're a scholar and a mensch.

Re: Getting a error when attempting to use the LuxCore online Library

Posted: Wed Feb 10, 2021 2:21 pm
by Martini
Mercury wrote: Wed Feb 10, 2021 12:51 pm Thanks Martini, you're a scholar and a mensch.
Well... it turns out, the fix for this problem was pretty easy... so... I also fixed the problem...

Here is the pull request: https://github.com/LuxCoreRender/BlendLuxCore/pull/629

@B.Y.O.B.

:ugeek:

Re: Getting a error when attempting to use the LuxCore online Library

Posted: Sun Feb 21, 2021 11:28 pm
by Martini
Martini wrote: Wed Feb 10, 2021 2:21 pm
Mercury wrote: Wed Feb 10, 2021 12:51 pm Thanks Martini, you're a scholar and a mensch.
Well... it turns out, the fix for this problem was pretty easy... so... I also fixed the problem...

Here is the pull request: https://github.com/LuxCoreRender/BlendLuxCore/pull/629
Hi @Mercury, you can find the fix in the latest daily build here: https://github.com/LuxCoreRender/BlendLuxCore/releases

Re: Getting a error when attempting to use the LuxCore online Library

Posted: Mon Apr 19, 2021 8:30 am
by samlarsoonn
wrote:
Thanks Martini, you're a scholar and a mensch.
Well... it turns out, the fix for this problem was pretty easy... so... I also fixed the problem...

Here is the pull request: https://github.com/LuxCoreRender/BlendLuxCore/pull/629
Hi @Mercury, you can find the fix in the latest daily build here: https://github.com/LuxCoreRender/BlendLuxCore/releases
Yes
with the latest 2.5 they finally completely solved this issue