Getting a error when attempting to use the LuxCore online Library

Use this forum for general user support and related questions.
Forum rules
Please upload a testscene that allows developers to reproduce the problem, and attach some images.
Post Reply
Mercury
Posts: 6
Joined: Thu Feb 04, 2021 10:59 am

Getting a error when attempting to use the LuxCore online Library

Post 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
Martini
Posts: 125
Joined: Fri Nov 23, 2018 11:36 am
Location: Australia

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

Post 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.
AMD Ryzen Threadripper PRO 5995WX 64-Cores | 2x Gigabyte RTX 4090 Gaming OC
ASUS Pro WS WRX80E-SAGE SE WIFI | 256GB Kingston Server Premier ECC Unbuffered DDR4
Mercury
Posts: 6
Joined: Thu Feb 04, 2021 10:59 am

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

Post 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.
Martini
Posts: 125
Joined: Fri Nov 23, 2018 11:36 am
Location: Australia

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

Post 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:
AMD Ryzen Threadripper PRO 5995WX 64-Cores | 2x Gigabyte RTX 4090 Gaming OC
ASUS Pro WS WRX80E-SAGE SE WIFI | 256GB Kingston Server Premier ECC Unbuffered DDR4
Martini
Posts: 125
Joined: Fri Nov 23, 2018 11:36 am
Location: Australia

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

Post 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
AMD Ryzen Threadripper PRO 5995WX 64-Cores | 2x Gigabyte RTX 4090 Gaming OC
ASUS Pro WS WRX80E-SAGE SE WIFI | 256GB Kingston Server Premier ECC Unbuffered DDR4
samlarsoonn
Posts: 1
Joined: Wed Apr 14, 2021 1:24 pm

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

Post 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
Hi there
Post Reply